Sha256: 810bcd0fc9f99e651d0515ea7f5782a3eead102e8ca4d71777f0037336e66784
Contents?: true
Size: 419 Bytes
Versions: 19
Compression:
Stored size: 419 Bytes
Contents
require 'helper' require 'parser/current' class TestBase < Minitest::Test include AST::Sexp def test_parse ast = Parser::CurrentRuby.parse('1') assert_equal s(:int, 1), ast end def test_parse_with_comments ast, comments = Parser::CurrentRuby.parse_with_comments('1 # foo') assert_equal s(:int, 1), ast assert_equal 1, comments.size assert_equal '# foo', comments.first.text end end
Version data entries
19 entries across 19 versions & 2 rubygems