test: Telex goes in the language table like every other map
The unit suite built a Lang of its own for Telex and loaded telex.map into it, so the tests that drive the real table had to swap the map in and out around themselves. testmapinit loads it where it belongs.
This commit is contained in:
@@ -8,7 +8,7 @@ typevi(struct ct *t, char *keys, char *want)
|
||||
Str out, raw;
|
||||
|
||||
raw = mkstr(keys);
|
||||
transstr(&testvi, nil, &raw, &out);
|
||||
transstr(getlang(LangVI), nil, &raw, &out);
|
||||
checkstr(t, keys, want, &out);
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ vietnamese_backspace(struct ct *t)
|
||||
|
||||
for(i = 0; i < nelem(cases); i++){
|
||||
memset(&state, 0, sizeof state);
|
||||
state.l = &testvi;
|
||||
state.l = getlang(LangVI);
|
||||
state.pre = mkstr(cases[i].pre);
|
||||
state.raw = mkstr(cases[i].raw);
|
||||
backvi(&state);
|
||||
|
||||
Reference in New Issue
Block a user