# File test/lexertest.rb, line 43 def test_ending lex = JSON::Lexer.new("ab") lex.nextchar assert(lex.more?, "more? method produces wrong results (no more when there should be more)") lex.nextchar assert(!lex.more?, "more? method produces wrong results (more when there are no more)") end