mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
detectLanguage: test that a Japanese text with Han-only characters is ambiguous
This commit is contained in:
parent
c5680150e6
commit
f412a0ae50
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ Deno.test('Detects definitive texts', () => {
|
|||
|
||||
// ambiguous
|
||||
assertEquals(detectLanguage('你好', 1), undefined);
|
||||
assertEquals(detectLanguage('東京', 1), undefined);
|
||||
assertEquals(detectLanguage('Привет', 1), undefined);
|
||||
assertEquals(detectLanguage('Hello', 1), undefined);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue