mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-03 09:37:47 +00:00
fix(developer): kmlmc generates invalid json with smp
This commit is contained in:
parent
dfb184b1d5
commit
fa0ec95d88
3 changed files with 12 additions and 1 deletions
6
developer/js/tests/fixtures/example.qaa.smp/example.qaa.smp.model.ts
vendored
Normal file
6
developer/js/tests/fixtures/example.qaa.smp/example.qaa.smp.model.ts
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const source: LexicalModelSource = {
|
||||
format: 'trie-1.0',
|
||||
sources: ['wordlist.tsv'],
|
||||
wordBreaker: 'default',
|
||||
};
|
||||
export default source;
|
||||
5
developer/js/tests/fixtures/example.qaa.smp/wordlist.tsv
vendored
Normal file
5
developer/js/tests/fixtures/example.qaa.smp/wordlist.tsv
vendored
Normal 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.
|
|
|
@ -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/);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue