Annotation of embedaddon/php/ext/mbstring/libmbfl/tests/conv_encoding.tests/ujis_sjis.exp, revision 1.1.1.1
1.1 misho 1: #!/usr/bin/expect -f
2: spawn tests/conv_encoding Japanese Shift_JIS EUC-JP
3: set timeout 1
4:
5: expect_after {
6: "\[^\r\n\]*\r\n" { fail $test }
7: }
8:
9: set test "basic test"
10: send "testtest\r"
11: expect {
12: "%74%65%73%74%74%65%73%74 (8)\r\n" { pass $test }
13: }
14:
15:
16: set test "kanji + kana"
17: send "ÆüËÜ¸ì¥Æ¥¹¥È\r"
18: expect {
19: "%93%fa%96%7b%8c%ea%83%65%83%58%83%67 (12)\r\n" { pass $test }
20: }
21:
22: set test "full-width numerics"
23: send "£°£±£²£³£´£µ£¶£·£¸£¹\r"
24: expect {
25: "%82%4f%82%50%82%51%82%52%82%53%82%54%82%55%82%56%82%57%82%58 (20)\r\n" { pass $test }
26: }
27:
28: set test "full-width numerics"
29: send "Î"
30: expect {
31: "%3f (1)\r\n" { pass $test }
32: }
33:
34: close
35: # vim: sts=4 ts=4 sw=4 et encoding=EUC-JP
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>