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:
2026-08-17 12:20:39 +09:00
parent 3a90826238
commit e54783dc92
4 changed files with 14 additions and 39 deletions

View File

@@ -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);