import test from 'node:test'; import assert from 'node:assert/strict'; import { solution } from './banana.js'; test('checks NAABXXAN', () => { assert.strictEqual(solution('NAABXXAN'), 1); }); test('checks NAANAAXNABABYNNBZ', () => { assert.strictEqual(solution('NAANAAXNABABYNNBZ'), 2); }); test('checks QABAAAWOBL', () => { assert.strictEqual(solution('QABAAAWOBL'), 0); }); // test('checks if 4 is not prime', () => { // assert.strictEqual(isPrime(4), false); // }); // // test('checks if 17 is prime', () => { // assert.strictEqual(isPrime(17), true); // }); // // test('checks if 1 is not prime', () => { // assert.strictEqual(isPrime(1), false); // }); // // test('checks if 0 is not prime', () => { // assert.strictEqual(isPrime(0), false); // });