diff options
| author | uakci <uakci@uakci.pl> | 2021-09-15 01:19:55 +0200 |
|---|---|---|
| committer | uakci <uakci@uakci.pl> | 2021-09-15 01:19:55 +0200 |
| commit | 20ef8a090c2bc552e8f1e5dd773cd086c9782a21 (patch) | |
| tree | 89b7efba3f301c11eaba53ce13bcca87a9648240 /vietoaq/vietoaq_test.go | |
| download | nuogai-20ef8a090c2bc552e8f1e5dd773cd086c9782a21.tar.gz nuogai-20ef8a090c2bc552e8f1e5dd773cd086c9782a21.zip | |
initial
Diffstat (limited to 'vietoaq/vietoaq_test.go')
| -rw-r--r-- | vietoaq/vietoaq_test.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vietoaq/vietoaq_test.go b/vietoaq/vietoaq_test.go new file mode 100644 index 0000000..15a2455 --- /dev/null +++ b/vietoaq/vietoaq_test.go @@ -0,0 +1,33 @@ +package vietoaq + +import ( + "testing" +) + +var ( + examples = map[string]string{ + ``: ``, + `bbb`: `bbb`, + `jảq hủı óq`: `jam huin xob`, + `ýhō`: `xyphor`, + `gı'aq`: `gixaq`, + `gï'aq`: `gixxaq`, + `jảq'a`: `jamxa`, + `gï aq`: `gix xaq`, + `aq'aq aq`: `xaqxaq xaq`, + } +) + +func TestVietoaq(t *testing.T) { + for regular, vietoaq := range examples { + vietoaq_ := To(regular) + if vietoaq_ != vietoaq { + t.Errorf(" to: %s -> %s != %s", regular, vietoaq_, vietoaq) + } + regular_ := From(vietoaq) + if regular_ != regular { + t.Errorf("from: %s -> %s != %s", vietoaq, regular_, regular) + } + } +} + |
