# File test/lexertest.rb, line 72
  def test_nextclean
    str1 = "/\t// comment\nb"
    lex = JSON::Lexer.new(str1)
    assert(lex.nextclean == '/', "nextclean seems to have problems")
    assert(lex.nextclean == 'b', "// comment processing has problems")
    str2 = "/ /* comment */b"
    lex = JSON::Lexer.new(str2)
    assert(lex.nextclean == '/', "nextclean seems to have problems")
    assert(lex.nextclean == 'b', "/* .. */ comment processing has problems")
    # test unclosed comments
    lex = JSON::Lexer.new("a/* unclosed comment")
    assert(lex.nextclean == 'a', "nextclean seems to have problems")
    assert_raises(RuntimeError, "unclosed comment doesn't raise exceptions") {
      lex.nextclean
    }
  end