UNPKG

@sutton-signwriting/core

Version:

a javascript package for node and browsers that supports general processing of the Sutton SignWriting script

10 lines (7 loc) 419 B
import { symbolRanges } from './swuquery-symbol-ranges'; it('should return a range for symbol', () => { expect(symbolRanges('񀀁')).toBe('\uD8C0\uDC01'); expect(symbolRanges('񀀁f')).toBe('(\uD8C0\uDC01|\uD8C0\uDC11|\uD8C0\uDC21|\uD8C0\uDC31|\uD8C0\uDC41|\uD8C0\uDC51)'); expect(symbolRanges('񀀁r')).toBe('\uD8C0[\uDC01-\uDC10]'); expect(symbolRanges('񀀁fr')).toBe('\uD8C0[\uDC01-\uDC60]'); })