Skip to content

Commit a187d90

Browse files
committed
Add s2twp tests for mixed-script input
Cover issue #475 (繁簡混雜輸入): all simplified/traditional variants of 录像带 and 数据库 should convert to 錄影帶 and 資料庫 respectively.
1 parent a0cfbe5 commit a187d90

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/testcases/testcases.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,13 @@
16011601
"t2s": "并州"
16021602
}
16031603
},
1604+
{
1605+
"id": "BYVoid_OpenCC_Issue_475_mixed_script_input",
1606+
"input": "录像带 錄像带 錄像带 錄像帶 数据库 数据庫 数據库 数據庫 數据库 數据庫 數據库 數據庫",
1607+
"expected": {
1608+
"s2twp": "錄影帶 錄影帶 錄影帶 錄影帶 資料庫 資料庫 資料庫 資料庫 資料庫 資料庫 資料庫 資料庫"
1609+
}
1610+
},
16041611
{
16051612
"id": "s2twp_2char_twphrases_segmentation_xin_pian",
16061613
"input": "芯片面积",

0 commit comments

Comments
 (0)