Skip to content

Commit c603bba

Browse files
committed
Test YARP.parse_file by using it in tests
1 parent 638f684 commit c603bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/newline_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def visit(node)
2525
source = File.read(filepath, binmode: true, external_encoding: Encoding::UTF_8)
2626
expected = rubyvm_lines(source)
2727

28-
result = YARP.parse(source, relative)
28+
result = YARP.parse_file(filepath)
2929
assert_empty result.errors
3030

3131
result.mark_newlines

0 commit comments

Comments
 (0)