# File test/lexertest.rb, line 51 def test_nextmatch lex = JSON::Lexer.new("abc") c = "" assert_nothing_raised { c = lex.nextmatch('a') } assert(c == 'a', "nextmatch is wrong") assert_raises(RuntimeError, "exception not raised for not found") { c = lex.nextmatch('a') } end