[ruby/yarp] Test YARP.parse_file by using it in tests
https://github.com/ruby/yarp/commit/c603bba89a
This commit is contained in:
parent
7cc5b22bbc
commit
ab2f638a27
Notes:
git
2023-08-17 00:48:11 +00:00
@ -25,7 +25,7 @@ class NewlineTest < Test::Unit::TestCase
|
|||||||
source = File.read(filepath, binmode: true, external_encoding: Encoding::UTF_8)
|
source = File.read(filepath, binmode: true, external_encoding: Encoding::UTF_8)
|
||||||
expected = rubyvm_lines(source)
|
expected = rubyvm_lines(source)
|
||||||
|
|
||||||
result = YARP.parse(source, relative)
|
result = YARP.parse_file(filepath)
|
||||||
assert_empty result.errors
|
assert_empty result.errors
|
||||||
|
|
||||||
result.mark_newlines
|
result.mark_newlines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user