Skip to content

Commit

Permalink
fix: The Mongolian vowel separator is word-internal
Browse files Browse the repository at this point in the history
And therefore will never be used to separate words, so we can safely remove it from the tests
  • Loading branch information
RaceProUK committed Aug 10, 2017
1 parent a5e9119 commit 5e3f0ad
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/lib/commandsTest.js
Expand Up @@ -12,6 +12,9 @@ chai.use(require('sinon-chai'));
const commands = require('../../lib/commands');
const utils = require('../../lib/utils');

const spaces = [' ', '\f', '\t', '\v', '\u00a0', '\u1680', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004',
'\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f', '\u3000'];

describe('lib/commands', () => {
describe('exports', () => {
const fns = ['bindCommands'],
Expand Down Expand Up @@ -97,10 +100,7 @@ describe('lib/commands', () => {
});
});
describe('any space character should split args', () => {
[' ', '\f', '\t', '\v', '\u00a0', '\u1680', '\u180e', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004',
'\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f',
'\u3000'
].forEach((space) => {
spaces.forEach((space) => {
let str = `0000${space.charCodeAt().toString(16)}`;
str = `\\u${str.substring(str.length - 4)}`;
it(`: ${str}`, () => {
Expand Down Expand Up @@ -164,10 +164,7 @@ describe('lib/commands', () => {
});
});
describe('any space character should split args', () => {
[' ', '\f', '\t', '\v', '\u00a0', '\u1680', '\u180e', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004',
'\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f',
'\u3000'
].forEach((space) => {
spaces.forEach((space) => {
let str = `0000${space.charCodeAt().toString(16)}`;
str = `\\u${str.substring(str.length - 4)}`;
it(`: ${str}`, () => {
Expand Down

0 comments on commit 5e3f0ad

Please sign in to comment.