fix(developer): kmlmc generates invalid json with smp

This commit is contained in:
Marc Durdin 2019-12-09 13:37:51 +00:00
parent dfb184b1d5
commit fa0ec95d88
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,6 @@
const source: LexicalModelSource = {
format: 'trie-1.0',
sources: ['wordlist.tsv'],
wordBreaker: 'default',
};
export default source;

View file

@ -0,0 +1,5 @@
CRAZ🤪 13644
🙄 9134
😇 4816
🇸
🇺
Can't render this file because it has a wrong number of fields in line 4.

View file

@ -4,7 +4,6 @@ import 'mocha';
import {makePathToFixture, compileModelSourceCode} from './helpers';
describe('LexicalModelCompiler', function () {
describe('#generateLexicalModelCode', function () {
it('should compile a trivial word list', function () {
@ -105,3 +104,4 @@ describe('LexicalModelCompiler', function () {
assert.match(code, /\btotalWeight\b["']?:\s*27596\b/);
});
});