Skip to content

Commit

Permalink
Removed unused methods. Langusta is now compatible with 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiek committed Nov 9, 2011
1 parent 72c00f2 commit d8d5728
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/test_ucs2_string.rb
Expand Up @@ -18,11 +18,6 @@ def test_chooses_right_implementation
end end
end end


def test_convert_to_ucs2_codepoints
assert_equal([97], UCS2String::Converter.to_ucs2_codepoints('a'))
assert_equal([122, 97, 380, 243, 322, 263, 32, 103, 281, 347, 108, 261, 32, 106, 97, 378, 324], UCS2String::Converter.to_ucs2_codepoints('zażółć gęślą jaźń'))
end

def test_convert_to_ucs2_string def test_convert_to_ucs2_string
assert_equal("\x00a", UCS2String::Converter.to_ucs2_string('a')) assert_equal("\x00a", UCS2String::Converter.to_ucs2_string('a'))
assert_equal("\x00z\x00a\x01\x7c\x00\xf3\x01\x42\x01\x07\x00\x20\x00\x67\x01\x19\x01\x5b\x00\x6c\x01\x05\x00\x20\x00\x6a\x00\x61\x01\x7a\x01\x44", UCS2String::Converter.to_ucs2_string('zażółć gęślą jaźń')) assert_equal("\x00z\x00a\x01\x7c\x00\xf3\x01\x42\x01\x07\x00\x20\x00\x67\x01\x19\x01\x5b\x00\x6c\x01\x05\x00\x20\x00\x6a\x00\x61\x01\x7a\x01\x44", UCS2String::Converter.to_ucs2_string('zażółć gęślą jaźń'))
Expand Down

0 comments on commit d8d5728

Please sign in to comment.