scroll/src/common/strings_test.ts

9 lines
296 B
JavaScript
Raw Normal View History

2023-11-02 13:06:48 -04:00
import { importForRuntime } from './index.ts';
import { chars } from './strings.ts';
const { test, assertEquals } = await importForRuntime('test_base');
test('chars fn properly splits strings into unicode characters', () => {
assertEquals(chars('😺😸😹'), ['😺', '😸', '😹']);
});