1#!/usr/bin/expect -f 2 3set timeout 1 4 5set test "full-width alphabets to half-width counterparts" 6spawn tests/conv_kana EUC-JP "r" 7expect_after { 8 "\[^\r\n\]*\r\n" { fail $test } 9} 10send "���������������������������������\r" 11expect { 12 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 13} 14send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 15expect { 16 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 17} 18send "abcdefghijklmnopqrstuvwxyz\r" 19expect { 20 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 21} 22send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 23expect { 24 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 25} 26send "0123456789\r" 27expect { 28 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 29} 30send "��������������������\r" 31expect { 32 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 33} 34send "�� \r" 35expect { 36 -ex "%a1%a1%20 (3)\r\n" { pass $test } 37} 38send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 39expect { 40 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 41} 42send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 43expect { 44 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 45} 46send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 47expect { 48 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 49} 50close 51 52set test "half-width alphabets to full-width counterparts" 53spawn tests/conv_kana EUC-JP "R" 54expect_after { 55 "\[^\r\n\]*\r\n" { fail $test } 56} 57send "���������������������������������\r" 58expect { 59 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 60} 61send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 62expect { 63 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 64} 65send "0123456789\r" 66expect { 67 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 68} 69send "��������������������\r" 70expect { 71 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 72} 73send "�� \r" 74expect { 75 -ex "%a1%a1%20 (3)\r\n" { pass $test } 76} 77send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 78expect { 79 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 80} 81send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 82expect { 83 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 84} 85send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 86expect { 87 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 88} 89close 90 91set test "transliterate half-width alphabets to full-width counterparts and full-width to half-width at a time" 92spawn tests/conv_kana EUC-JP "Rr" 93expect_after { 94 "\[^\r\n\]*\r\n" { fail $test } 95} 96send "���������������������������������\r" 97expect { 98 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 99} 100send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 101expect { 102 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 103} 104send "abcdefghijklmnopqrstuvwxyz\r" 105expect { 106 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 107} 108send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 109expect { 110 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 111} 112send "0123456789\r" 113expect { 114 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 115} 116send "��������������������\r" 117expect { 118 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 119} 120send "�� \r" 121expect { 122 -ex "%a1%a1%20 (3)\r\n" { pass $test } 123} 124send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 125expect { 126 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 127} 128send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 129expect { 130 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 131} 132send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 133expect { 134 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 135} 136close 137 138set test "full-width numerics to half-width counterparts" 139spawn tests/conv_kana EUC-JP "n" 140expect_after { 141 "\[^\r\n\]*\r\n" { fail $test } 142} 143send "���������������������������������\r" 144expect { 145 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 146} 147send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 148expect { 149 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 150} 151send "abcdefghijklmnopqrstuvwxyz\r" 152expect { 153 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 154} 155send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 156expect { 157 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 158} 159send "0123456789\r" 160expect { 161 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 162} 163send "��������������������\r" 164expect { 165 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 166} 167send "�� \r" 168expect { 169 -ex "%a1%a1%20 (3)\r\n" { pass $test } 170} 171send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 172expect { 173 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 174} 175send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 176expect { 177 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 178} 179send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 180expect { 181 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 182} 183close 184 185set test "full-width numerics to half-width counterparts" 186spawn tests/conv_kana EUC-JP "n" 187expect_after { 188 "\[^\r\n\]*\r\n" { fail $test } 189} 190send "���������������������������������\r" 191expect { 192 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 193} 194send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 195expect { 196 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 197} 198send "abcdefghijklmnopqrstuvwxyz\r" 199expect { 200 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 201} 202send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 203expect { 204 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 205} 206send "0123456789\r" 207expect { 208 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 209} 210send "��������������������\r" 211expect { 212 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 213} 214send "�� \r" 215expect { 216 -ex "%a1%a1%20 (3)\r\n" { pass $test } 217} 218send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 219expect { 220 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 221} 222send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 223expect { 224 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 225} 226send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 227expect { 228 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 229} 230close 231 232set test "half-width numerics to full-width counterparts" 233spawn tests/conv_kana EUC-JP "N" 234expect_after { 235 "\[^\r\n\]*\r\n" { fail $test } 236} 237send "���������������������������������\r" 238expect { 239 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 240} 241send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 242expect { 243 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 244} 245send "abcdefghijklmnopqrstuvwxyz\r" 246expect { 247 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 248} 249send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 250expect { 251 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 252} 253send "0123456789\r" 254expect { 255 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 256} 257send "��������������������\r" 258expect { 259 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 260} 261send "�� \r" 262expect { 263 -ex "%a1%a1%20 (3)\r\n" { pass $test } 264} 265send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 266expect { 267 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 268} 269send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 270expect { 271 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 272} 273send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 274expect { 275 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 276} 277close 278 279set test "transliterate half-width numerics to full-width counterparts and full-width to half-width at a time" 280spawn tests/conv_kana EUC-JP "nN" 281expect_after { 282 "\[^\r\n\]*\r\n" { fail $test } 283} 284send "���������������������������������\r" 285expect { 286 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 287} 288send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 289expect { 290 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 291} 292send "abcdefghijklmnopqrstuvwxyz\r" 293expect { 294 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 295} 296send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 297expect { 298 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 299} 300send "0123456789\r" 301expect { 302 -ex "%a3%b0%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 303} 304send "��������������������\r" 305expect { 306 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 307} 308send "�� \r" 309expect { 310 -ex "%a1%a1%20 (3)\r\n" { pass $test } 311} 312send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 313expect { 314 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 315} 316send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 317expect { 318 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 319} 320send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 321expect { 322 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 323} 324close 325 326set test "full-width alphanumerics to half-width counterparts" 327spawn tests/conv_kana EUC-JP "a" 328expect_after { 329 "\[^\r\n\]*\r\n" { fail $test } 330} 331send "���������������������������������\r" 332expect { 333 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 334} 335send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 336expect { 337 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 338} 339send "abcdefghijklmnopqrstuvwxyz\r" 340expect { 341 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 342} 343send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 344expect { 345 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 346} 347send "0123456789\r" 348expect { 349 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 350} 351send "��������������������\r" 352expect { 353 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 354} 355send "�� \r" 356expect { 357 -ex "%a1%a1%20 (3)\r\n" { pass $test } 358} 359send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 360expect { 361 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 362} 363send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 364expect { 365 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 366} 367send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 368expect { 369 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 370} 371close 372 373set test "half-width alphanumerics to full-width counterparts" 374spawn tests/conv_kana EUC-JP "A" 375expect_after { 376 "\[^\r\n\]*\r\n" { fail $test } 377} 378send "���������������������������������\r" 379expect { 380 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 381} 382send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 383expect { 384 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 385} 386send "0123456789\r" 387expect { 388 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 389} 390send "��������������������\r" 391expect { 392 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 393} 394send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 395expect { 396 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 397} 398send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 399expect { 400 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 401} 402send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 403expect { 404 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 405} 406close 407 408set test "transliterate half-width alphanumerics to full-width counterparts and full-width to half-width at a time" 409spawn tests/conv_kana EUC-JP "Aa" 410expect_after { 411 "\[^\r\n\]*\r\n" { fail $test } 412} 413send "���������������������������������\r" 414expect { 415 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 416} 417send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 418expect { 419 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 420} 421send "abcdefghijklmnopqrstuvwxyz\r" 422expect { 423 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 424} 425send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 426expect { 427 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 428} 429send "0123456789\r" 430expect { 431 -ex "%a3%b0%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 432} 433send "��������������������\r" 434expect { 435 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 436} 437send "�� \r" 438expect { 439 -ex "%a1%a1%20 (3)\r\n" { pass $test } 440} 441send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 442expect { 443 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 444} 445send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 446expect { 447 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 448} 449send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 450expect { 451 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 452} 453close 454 455set test "full-width spaces to half-width counterparts" 456spawn tests/conv_kana EUC-JP "s" 457expect_after { 458 "\[^\r\n\]*\r\n" { fail $test } 459} 460send "���������������������������������\r" 461expect { 462 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 463} 464send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 465expect { 466 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 467} 468send "abcdefghijklmnopqrstuvwxyz\r" 469expect { 470 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 471} 472send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 473expect { 474 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 475} 476send "0123456789\r" 477expect { 478 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 479} 480send "��������������������\r" 481expect { 482 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 483} 484send "�� \r" 485expect { 486 -ex "%20%20 (2)\r\n" { pass $test } 487} 488send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 489expect { 490 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 491} 492send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 493expect { 494 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 495} 496send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 497expect { 498 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 499} 500close 501 502set test "half-width spaces to full-width counterparts" 503spawn tests/conv_kana EUC-JP "S" 504expect_after { 505 "\[^\r\n\]*\r\n" { fail $test } 506} 507send "���������������������������������\r" 508expect { 509 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 510} 511send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 512expect { 513 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 514} 515send "0123456789\r" 516expect { 517 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 518} 519send "��������������������\r" 520expect { 521 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 522} 523send "�� \r" 524expect { 525 -ex "%a1%a1%a1%a1 (4)\r\n" { pass $test } 526} 527send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 528expect { 529 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 530} 531send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 532expect { 533 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 534} 535send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 536expect { 537 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 538} 539close 540 541set test "transliterate half-width spaces to full-width counterparts and full-width to half-width at a time" 542spawn tests/conv_kana EUC-JP "Ss" 543expect_after { 544 "\[^\r\n\]*\r\n" { fail $test } 545} 546send "���������������������������������\r" 547expect { 548 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 549} 550send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 551expect { 552 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 553} 554send "abcdefghijklmnopqrstuvwxyz\r" 555expect { 556 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 557} 558send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 559expect { 560 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 561} 562send "0123456789\r" 563expect { 564 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 565} 566send "��������������������\r" 567expect { 568 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 569} 570send "�� \r" 571expect { 572 -ex "%20%a1%a1 (3)\r\n" { pass $test } 573} 574send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 575expect { 576 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 577} 578send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 579expect { 580 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 581} 582send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 583expect { 584 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 585} 586close 587 588set test "full-width katakanas to half-width counterparts" 589spawn tests/conv_kana EUC-JP "k" 590expect_after { 591 "\[^\r\n\]*\r\n" { fail $test } 592} 593send "���������������������������������\r" 594expect { 595 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 596} 597send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 598expect { 599 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 600} 601send "abcdefghijklmnopqrstuvwxyz\r" 602expect { 603 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 604} 605send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 606expect { 607 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 608} 609send "0123456789\r" 610expect { 611 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 612} 613send "��������������������\r" 614expect { 615 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 616} 617send "�� \r" 618expect { 619 -ex "%a1%a1%20 (3)\r\n" { pass $test } 620} 621send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 622expect { 623 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (90)\r\n" { pass $test } 624} 625send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 626expect { 627 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 628} 629send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 630expect { 631 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%8e%de%a4%ad%8e%de%a4%af%8e%de%a4%b1%8e%de%a4%b3%8e%de%a4%cf%8e%df%a4%d2%8e%df%a4%d5%8e%df%a4%d8%8e%df%a4%db%8e%df (70)\r\n" { pass $test } 632} 633close 634 635set test "half-width katakanas to full-width counterparts" 636spawn tests/conv_kana EUC-JP "K" 637expect_after { 638 "\[^\r\n\]*\r\n" { fail $test } 639} 640send "���������������������������������\r" 641expect { 642 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 643} 644send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 645expect { 646 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 647} 648send "abcdefghijklmnopqrstuvwxyz\r" 649expect { 650 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 651} 652send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 653expect { 654 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 655} 656send "0123456789\r" 657expect { 658 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 659} 660send "��������������������\r" 661expect { 662 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 663} 664send "�� \r" 665expect { 666 -ex "%a1%a1%20 (3)\r\n" { pass $test } 667} 668send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 669expect { 670 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 671} 672send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 673expect { 674 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (50)\r\n" { pass $test } 675} 676send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 677expect { 678 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 679} 680close 681 682set test "transliterate half-width katakanas to full-width counterparts and full-width to half-width at a time" 683spawn tests/conv_kana EUC-JP "kK" 684expect_after { 685 "\[^\r\n\]*\r\n" { fail $test } 686} 687send "���������������������������������\r" 688expect { 689 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 690} 691send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 692expect { 693 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 694} 695send "abcdefghijklmnopqrstuvwxyz\r" 696expect { 697 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 698} 699send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 700expect { 701 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 702} 703send "0123456789\r" 704expect { 705 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 706} 707send "��������������������\r" 708expect { 709 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 710} 711send "�� \r" 712expect { 713 -ex "%a1%a1%20 (3)\r\n" { pass $test } 714} 715send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 716expect { 717 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (90)\r\n" { pass $test } 718} 719send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 720expect { 721 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (50)\r\n" { pass $test } 722} 723send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 724expect { 725 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%8e%de%a4%ad%8e%de%a4%af%8e%de%a4%b1%8e%de%a4%b3%8e%de%a4%cf%8e%df%a4%d2%8e%df%a4%d5%8e%df%a4%d8%8e%df%a4%db%8e%df (70)\r\n" { pass $test } 726} 727close 728 729set test "full-width hiraganas to half-width katakana" 730spawn tests/conv_kana EUC-JP "h" 731expect_after { 732 "\[^\r\n\]*\r\n" { fail $test } 733} 734send "���������������������������������\r" 735expect { 736 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 737} 738send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 739expect { 740 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 741} 742send "abcdefghijklmnopqrstuvwxyz\r" 743expect { 744 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 745} 746send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 747expect { 748 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 749} 750send "0123456789\r" 751expect { 752 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 753} 754send "��������������������\r" 755expect { 756 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 757} 758send "�� \r" 759expect { 760 -ex "%a1%a1%20 (3)\r\n" { pass $test } 761} 762send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 763expect { 764 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%8e%de%a5%ad%8e%de%a5%af%8e%de%a5%b1%8e%de%a5%b3%8e%de%a5%cf%8e%df%a5%d2%8e%df%a5%d5%8e%df%a5%d8%8e%df%a5%db%8e%df (70)\r\n" { pass $test } 765} 766send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 767expect { 768 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 769} 770send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 771expect { 772 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (90)\r\n" { pass $test } 773} 774close 775 776set test "half-width katakanas to full-width hiragana" 777spawn tests/conv_kana EUC-JP "H" 778expect_after { 779 "\[^\r\n\]*\r\n" { fail $test } 780} 781send "���������������������������������\r" 782expect { 783 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 784} 785send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 786expect { 787 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 788} 789send "abcdefghijklmnopqrstuvwxyz\r" 790expect { 791 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 792} 793send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 794expect { 795 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 796} 797send "0123456789\r" 798expect { 799 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 800} 801send "��������������������\r" 802expect { 803 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 804} 805send "�� \r" 806expect { 807 -ex "%a1%a1%20 (3)\r\n" { pass $test } 808} 809send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 810expect { 811 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 812} 813send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 814expect { 815 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (50)\r\n" { pass $test } 816} 817send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 818expect { 819 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 820} 821close 822 823set test "transliterate half-width katakanas to full-width hiraganas and full-width to half-width at a time" 824spawn tests/conv_kana EUC-JP "hH" 825expect_after { 826 "\[^\r\n\]*\r\n" { fail $test } 827} 828send "���������������������������������\r" 829expect { 830 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 831} 832send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 833expect { 834 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 835} 836send "abcdefghijklmnopqrstuvwxyz\r" 837expect { 838 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 839} 840send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 841expect { 842 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 843} 844send "0123456789\r" 845expect { 846 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 847} 848send "��������������������\r" 849expect { 850 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 851} 852send "�� \r" 853expect { 854 -ex "%a1%a1%20 (3)\r\n" { pass $test } 855} 856send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 857expect { 858 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%8e%de%a5%ad%8e%de%a5%af%8e%de%a5%b1%8e%de%a5%b3%8e%de%a5%cf%8e%df%a5%d2%8e%df%a5%d5%8e%df%a5%d8%8e%df%a5%db%8e%df (70)\r\n" { pass $test } 859} 860send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 861expect { 862 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (50)\r\n" { pass $test } 863} 864send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 865expect { 866 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (90)\r\n" { pass $test } 867} 868close 869 870set test "full-width katakanas to full-width hiragana" 871spawn tests/conv_kana EUC-JP "c" 872expect_after { 873 "\[^\r\n\]*\r\n" { fail $test } 874} 875send "���������������������������������\r" 876expect { 877 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 878} 879send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 880expect { 881 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 882} 883send "abcdefghijklmnopqrstuvwxyz\r" 884expect { 885 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 886} 887send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 888expect { 889 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 890} 891send "0123456789\r" 892expect { 893 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 894} 895send "��������������������\r" 896expect { 897 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 898} 899send "�� \r" 900expect { 901 -ex "%a1%a1%20 (3)\r\n" { pass $test } 902} 903send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 904expect { 905 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 906} 907send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 908expect { 909 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 910} 911send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 912expect { 913 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 914} 915close 916 917set test "full-width hiraganas to full-width katakana" 918spawn tests/conv_kana EUC-JP "C" 919expect_after { 920 "\[^\r\n\]*\r\n" { fail $test } 921} 922send "���������������������������������\r" 923expect { 924 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 925} 926send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 927expect { 928 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 929} 930send "0123456789\r" 931expect { 932 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 933} 934send "��������������������\r" 935expect { 936 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 937} 938send "�� \r" 939expect { 940 -ex "%a1%a1%20 (3)\r\n" { pass $test } 941} 942send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 943expect { 944 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 945} 946send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 947expect { 948 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 949} 950send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 951expect { 952 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 953} 954close 955 956set test "conversion between full-width hiraganas and full-width katakanas, flags for both directions are specified at a time" 957spawn tests/conv_kana EUC-JP "Cc" 958expect_after { 959 "\[^\r\n\]*\r\n" { fail $test } 960} 961send "���������������������������������\r" 962expect { 963 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 964} 965send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 966expect { 967 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 968} 969send "abcdefghijklmnopqrstuvwxyz\r" 970expect { 971 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 972} 973send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 974expect { 975 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 976} 977send "0123456789\r" 978expect { 979 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 980} 981send "��������������������\r" 982expect { 983 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 984} 985send "�� \r" 986expect { 987 -ex "%a1%a1%20 (3)\r\n" { pass $test } 988} 989send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 990expect { 991 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 992} 993send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 994expect { 995 -ex "%8e%b1%8e%b2%8e%b3%8e%b4%8e%b5%8e%b6%8e%de%8e%b7%8e%de%8e%b8%8e%de%8e%b9%8e%de%8e%ba%8e%de%8e%ca%8e%df%8e%cb%8e%df%8e%cc%8e%df%8e%cd%8e%df%8e%ce%8e%df (50)\r\n" { pass $test } 996} 997send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 998expect { 999 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 1000} 1001close 1002 1003set test "half-width katakanas to full-width katakanas, with voiced marks combined" 1004spawn tests/conv_kana EUC-JP "KV" 1005expect_after { 1006 "\[^\r\n\]*\r\n" { fail $test } 1007} 1008send "���������������������������������\r" 1009expect { 1010 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 1011} 1012send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 1013expect { 1014 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 1015} 1016send "abcdefghijklmnopqrstuvwxyz\r" 1017expect { 1018 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 1019} 1020send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 1021expect { 1022 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 1023} 1024send "0123456789\r" 1025expect { 1026 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 1027} 1028send "��������������������\r" 1029expect { 1030 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 1031} 1032send "�� \r" 1033expect { 1034 -ex "%a1%a1%20 (3)\r\n" { pass $test } 1035} 1036send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 1037expect { 1038 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 1039} 1040send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 1041expect { 1042 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd (30)\r\n" { pass $test } 1043} 1044send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 1045expect { 1046 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 1047} 1048close 1049 1050set test "half-width katakanas to full-width hiraganas, with voiced marks combined" 1051spawn tests/conv_kana EUC-JP "HV" 1052expect_after { 1053 "\[^\r\n\]*\r\n" { fail $test } 1054} 1055send "���������������������������������\r" 1056expect { 1057 -ex "%a3%e1%a3%e2%a3%e3%a3%e4%a3%e5%a3%e6%a3%e7%a3%e8%a3%e9%a3%ea%a3%eb%a3%ec%a3%ed%a3%ee%a3%ef%a3%f0%a3%f1%a3%f2%a3%f3%a3%f4%a3%f5%a3%f6%a3%f7%a3%f8%a3%f9%a3%fa (52)\r\n" { pass $test } 1058} 1059send "���£ãģţƣǣȣɣʣˣ̣ͣΣϣУѣңӣԣգ֣ףأ٣�\r" 1060expect { 1061 -ex "%a3%c1%a3%c2%a3%c3%a3%c4%a3%c5%a3%c6%a3%c7%a3%c8%a3%c9%a3%ca%a3%cb%a3%cc%a3%cd%a3%ce%a3%cf%a3%d0%a3%d1%a3%d2%a3%d3%a3%d4%a3%d5%a3%d6%a3%d7%a3%d8%a3%d9%a3%da (52)\r\n" { pass $test } 1062} 1063send "abcdefghijklmnopqrstuvwxyz\r" 1064expect { 1065 -ex "%61%62%63%64%65%66%67%68%69%6a%6b%6c%6d%6e%6f%70%71%72%73%74%75%76%77%78%79%7a (26)\r\n" { pass $test } 1066} 1067send "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r" 1068expect { 1069 -ex "%41%42%43%44%45%46%47%48%49%4a%4b%4c%4d%4e%4f%50%51%52%53%54%55%56%57%58%59%5a (26)\r\n" { pass $test } 1070} 1071send "0123456789\r" 1072expect { 1073 -ex "%30%31%32%33%34%35%36%37%38%39 (10)\r\n" { pass $test } 1074} 1075send "��������������������\r" 1076expect { 1077 -ex "%a3%b1%a3%b2%a3%b3%a3%b4%a3%b5%a3%b6%a3%b7%a3%b8%a3%b9 (20)\r\n" { pass $test } 1078} 1079send "�� \r" 1080expect { 1081 -ex "%a1%a1%20 (3)\r\n" { pass $test } 1082} 1083send "���������������������ѥԥץڥݥ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 1084expect { 1085 -ex "%a5%a2%a5%a4%a5%a6%a5%a8%a5%aa%a5%ac%a5%ae%a5%b0%a5%b2%a5%b4%a5%d1%a5%d4%a5%d7%a5%da%a5%dd%a5%ab%a1%ab%a5%ad%a1%ab%a5%af%a1%ab%a5%b1%a1%ab%a5%b3%a1%ab%a5%cf%a1%ac%a5%d2%a1%ac%a5%d5%a1%ac%a5%d8%a1%ac%a5%db%a1%ac (70)\r\n" { pass $test } 1086} 1087send "�������������ގ��ގ��ގ��ގ��ގʎߎˎߎ̎ߎ͎ߎΎ�\r" 1088expect { 1089 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd (30)\r\n" { pass $test } 1090} 1091send "���������������������ѤԤפڤݤ��������������������ϡ��ҡ��ա��ء��ۡ�\r" 1092expect { 1093 -ex "%a4%a2%a4%a4%a4%a6%a4%a8%a4%aa%a4%ac%a4%ae%a4%b0%a4%b2%a4%b4%a4%d1%a4%d4%a4%d7%a4%da%a4%dd%a4%ab%a1%ab%a4%ad%a1%ab%a4%af%a1%ab%a4%b1%a1%ab%a4%b3%a1%ab%a4%cf%a1%ac%a4%d2%a1%ac%a4%d5%a1%ac%a4%d8%a1%ac%a4%db%a1%ac (70)\r\n" { pass $test } 1094} 1095close 1096 1097 1098# vim: sts=4 ts=4 sw=4 et encoding=EUC-JP 1099