UNPKG

@technobuddha/library

Version:
12 lines (10 loc) 489 B
import { splitChars } from './split-chars.ts'; import { empty } from './unicode.ts'; describe('splitChars', () => { test('should split strings', () => { expect(splitChars('abcdefghi')).toEqual(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']); expect(splitChars(empty)).toEqual([]); expect(splitChars('⒜⒝⒞⒟')).toEqual(['⒜', '⒝', '⒞', '⒟']); expect(splitChars('😀😁😂😺😸😹')).toEqual(['😀', '😁', '😂', '😺', '😸', '😹']); }); });