test(autocomplete): cover all preloaded specs and Apple extension term

- Assert every one of the 22 batch-4 commands in COMMON_FIG_SPECS; the old
  loop only covered 7, so dropping a preload entry could pass unnoticed.
- Keep the noun “extension” as 擴充功能: the generic 擴充套件→擴充 rule is
  right for “extended” compounds (擴充屬性, 擴充標頭, 擴充正規表示式), but
  Apple's option descriptions need the noun form.
This commit is contained in:
csr588 committed 2026-11-08 13:19:41 +08:00
1 parent 192d5ca8a1
commit 4db44e2ede
4 files changed
+13 -4

No files matched your search

@@ -61,6 +61,10 @@ const TAIWAN_PHRASE_FIXES = [
["ALPN TLS 擴充", "ALPN TLS 擴充功能"],
["NPN TLS 擴充", "NPN TLS 擴充功能"],
["數據", "資料"],
// “extension” as a noun keeps 功能; the generic rule above only covers the
// adjective “extended” (擴充屬性, 擴充正規表示式, 擴充標頭).
["Apple 的擴充", "Apple 的擴充功能"],
["(Apple 擴充)", "(Apple 擴充功能)"],
];
function toTraditionalTaiwan(text, convert) {