class TestEncode
Encode Unit Test
Public Instance Methods
setup()
click to toggle source
# File test/test_encode.rb, line 5 def setup @str = '日本語文字列を確認' @utf8_str = @str.encode('UTF-8') end
teardown()
click to toggle source
# File test/test_encode.rb, line 32 def teardown # database network test add. end
test_encode()
click to toggle source
# File mini_test/mini_test_encode.rb, line 8 def test_encode @str = '日本語文字列を確認' assert_equal @str, @utf8_str = @str.encode('UTF-8') end
test_match()
click to toggle source
# File test/test_encode.rb, line 28 def test_match # assert_match end
test_new()
click to toggle source
# File test/test_encode.rb, line 10 def test_new assert_equal @str, @utf8_str end
test_nil_variable()
click to toggle source
# File test/test_encode.rb, line 24 def test_nil_variable # assert_nil end
test_up_should_be_string()
click to toggle source
# File test/test_encode.rb, line 14 def test_up_should_be_string assert_kind_of String, @str assert_instance_of String, @str end
test_up_should_be_string2()
click to toggle source
# File test/test_encode.rb, line 19 def test_up_should_be_string2 assert_kind_of String, @utf8_str assert_instance_of String, @utf8_str end