summaryrefslogtreecommitdiffstats
path: root/test/nkf
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-01 15:22:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-01 15:22:25 +0000
commit11b19499bc4e4a2efabcb0e82aa0b7d0bb221107 (patch)
tree620178b6bee52e11f5ba2790031123443aecbb33 /test/nkf
parent9639130df8113591946a4dd297306a541fc8f028 (diff)
downloadruby-11b19499bc4e4a2efabcb0e82aa0b7d0bb221107.tar.gz
ruby-11b19499bc4e4a2efabcb0e82aa0b7d0bb221107.tar.xz
ruby-11b19499bc4e4a2efabcb0e82aa0b7d0bb221107.zip
* ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf.
* ext/nkf/nkf.c: fix documents. * ext/nkf/lib/kconv.rb: fix documents. (Kconv.is*): use valid_encoding?. (Kconv.isjis): defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/nkf')
-rw-r--r--test/nkf/test_kconv.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nkf/test_kconv.rb b/test/nkf/test_kconv.rb
index df357e211..d396b4be4 100644
--- a/test/nkf/test_kconv.rb
+++ b/test/nkf/test_kconv.rb
@@ -25,7 +25,7 @@ class TestKconv < Test::Unit::TestCase
def test_eucjp
- assert(@euc_str.dup.force_encoding(nil).iseuc)
+ assert(@euc_str.iseuc)
assert_equal(::Kconv::EUC, Kconv.guess(@euc_str))
assert_equal(@euc_str, @euc_str.toeuc)
assert_equal(@euc_str, @sjis_str.toeuc)
@@ -37,7 +37,7 @@ class TestKconv < Test::Unit::TestCase
assert_equal(@euc_str, @jis_str.kconv(::NKF::EUC))
end
def test_shiftjis
- assert(@sjis_str.dup.force_encoding(nil).issjis)
+ assert(@sjis_str.issjis)
assert_equal(::Kconv::SJIS, Kconv.guess(@sjis_str))
assert_equal(@sjis_str, @euc_str.tosjis)
assert_equal(@sjis_str, @sjis_str.tosjis)
@@ -49,7 +49,7 @@ class TestKconv < Test::Unit::TestCase
assert_equal(@sjis_str, @jis_str.kconv(::NKF::SJIS))
end
def test_utf8
- assert(@utf8_str.dup.force_encoding(nil).isutf8)
+ assert(@utf8_str.isutf8)
assert_equal(::Kconv::UTF8, Kconv.guess(@utf8_str))
assert_equal(@utf8_str, @euc_str.toutf8)
assert_equal(@utf8_str, @sjis_str.toutf8)