-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
2,360 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { test, describe, expect } from 'vitest'; | ||
import { normalize } from './index'; | ||
|
||
describe('normalize', () => { | ||
test('it normalizes Toaq text', () => { | ||
expect(normalize('Vyadi hoi2 pai2 ȷibo1')).toMatchInlineSnapshot( | ||
`"Ꝡadı hóı páı jıbo"`, | ||
); | ||
expect(normalize('domu')).toMatchInlineSnapshot(`"domu"`); | ||
expect(normalize("o'aomo")).toMatchInlineSnapshot(`"o'aomo"`); | ||
expect(normalize('daqmiq')).toMatchInlineSnapshot(`"daqmıq"`); | ||
expect(normalize('koammoa')).toMatchInlineSnapshot(`"koammoa"`); | ||
expect(normalize("'amla")).toMatchInlineSnapshot(`"amla"`); | ||
expect(normalize('chuom’ai')).toMatchInlineSnapshot(`"chuom'aı"`); | ||
expect(normalize('ram-jea ji2')).toMatchInlineSnapshot(`"rạmjea jí"`); | ||
expect(normalize('rao4 2024')).toMatchInlineSnapshot(`"râo 2024"`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.