UNPKG

646 BJavaScriptView Raw
1
2import { swu2query } from './swuquery-convert';
3
4it('should convert swu strings into query string', () => {
5 expect(swu2query('𝠀񀀒񀀚񋚥񋛩𝠃𝤟𝤩񋛩𝣵𝤐񀀒𝤇𝣤񋚥𝤐𝤆񀀚𝣮𝣭', 'ASL'))
6 .toBe('QA񀀒񀀚񋚥񋛩T񋛩𝣵𝤐񀀒𝤇𝣤񋚥𝤐𝤆񀀚𝣮𝣭');
7 expect(swu2query('𝠀񀀒񀀚񋚥񋛩𝠃𝤟𝤩񋛩𝣵𝤐񀀒𝤇𝣤񋚥𝤐𝤆񀀚𝣮𝣭', 'a'))
8 .toBe('QA񀀒fr񀀚fr񋚥fr񋛩frT');
9 expect(swu2query('𝠀񀀒񀀚񋚥񋛩𝠃𝤟𝤩񋛩𝣵𝤐񀀒𝤇𝣤񋚥𝤐𝤆񀀚𝣮𝣭', 'sL'))
10 .toBe('Q񋛩fr𝣵𝤐񀀒fr𝤇𝣤񋚥fr𝤐𝤆񀀚fr𝣮𝣭')
11})
\No newline at end of file