# File test/lexertest.rb, line 89 def test_nextstring str1 = "str\"" lex = JSON::Lexer.new(str1) assert(lex.nextstring('"') == "str", "string processing has problems") str2 = '\b\t\n\f\r"' lex = JSON::Lexer.new(str2) assert(lex.nextstring('"') == "\b\t\n\f\r", "escape sequence processing has bugs") # UTF8 conversion tests for escape sequences str3 = '\u1234"' lex = JSON::Lexer.new(str3) assert(lex.nextstring('"') == "\341\210\224", "Unicode escape sequence processing has bugs") end