|
3 | 3 | require "-test-/econv" |
4 | 4 |
|
5 | 5 | class Test_EConvAppend < Test::Unit::TestCase |
6 | | - def test_econv_str_append_valid |
7 | | - ec = Bug::EConv.new("utf-8", "cp932") |
8 | | - dst = "\u3044".encode("cp932") |
9 | | - ret = ec.append("\u3042"*30, dst) |
10 | | - assert_same(dst, ret) |
11 | | - assert_not_predicate(dst, :ascii_only?) |
12 | | - assert_predicate(dst, :valid_encoding?) |
13 | | - end |
14 | | - |
15 | | - def test_econv_str_append_broken |
16 | | - ec = Bug::EConv.new("utf-8", "cp932") |
17 | | - dst = "" |
18 | | - ret = ec.append("\u3042"*30, dst) |
19 | | - assert_same(dst, ret) |
20 | | - assert_not_predicate(dst, :ascii_only?) |
21 | | - assert_not_predicate(dst, :valid_encoding?) |
22 | | - end |
| 6 | + # def test_econv_str_append_valid |
| 7 | + # ec = Bug::EConv.new("utf-8", "cp932") |
| 8 | + # dst = "\u3044".encode("cp932") |
| 9 | + # ret = ec.append("\u3042"*30, dst) |
| 10 | + # assert_same(dst, ret) |
| 11 | + # assert_not_predicate(dst, :ascii_only?) |
| 12 | + # assert_predicate(dst, :valid_encoding?) |
| 13 | + # end |
| 14 | + # |
| 15 | + # def test_econv_str_append_broken |
| 16 | + # ec = Bug::EConv.new("utf-8", "cp932") |
| 17 | + # dst = "" |
| 18 | + # ret = ec.append("\u3042"*30, dst) |
| 19 | + # assert_same(dst, ret) |
| 20 | + # assert_not_predicate(dst, :ascii_only?) |
| 21 | + # assert_not_predicate(dst, :valid_encoding?) |
| 22 | + # end |
23 | 23 | end |
0 commit comments