|
|
|
@ -7,5 +7,13 @@ void t.test('extractWordsFromFile', async (t) => { |
|
|
|
|
new URL('../../build-resources/th-en-x-basic.dat', import.meta.url), |
|
|
|
|
); |
|
|
|
|
//console.log(words);
|
|
|
|
|
t.equal(words.length, 12371); |
|
|
|
|
t.equal(words.length, 24691); |
|
|
|
|
t.equal(words.includes('afterthought'), true); |
|
|
|
|
t.equal(words.includes('airplane'), true); |
|
|
|
|
t.equal(words.includes('another'), true); |
|
|
|
|
t.equal(words.includes('anybody'), true); |
|
|
|
|
t.equal(words.includes('anyhow'), true); |
|
|
|
|
t.equal(words.includes('anyone'), true); |
|
|
|
|
t.equal(words.includes('anything'), true); |
|
|
|
|
t.equal(words.includes('anywhere'), true); |
|
|
|
|
}); |
|
|
|
|