@technobuddha/library
Version:
A large library of useful functions
13 lines (11 loc) • 411 B
text/typescript
import { syllables } from './syllables.ts';
describe('syllables', () => {
test('should count syllables', () => {
expect(syllables('now is the time for all good men to come to the aid of their country')).toBe(
17,
);
expect(syllables('the quick brown fox jumped over the lazy dog')).toBe(11);
expect(syllables('organization')).toBe(5);
expect(syllables('--==--')).toBe(0);
});
});