From ab2f638a275ae8aaf55a4937dcb3f898cf7ddad0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 29 Jul 2023 17:27:26 +0200 Subject: [PATCH] [ruby/yarp] Test YARP.parse_file by using it in tests https://github.com/ruby/yarp/commit/c603bba89a --- test/newline_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/newline_test.rb b/test/newline_test.rb index 09d0c09e5b..29c3b7f017 100644 --- a/test/newline_test.rb +++ b/test/newline_test.rb @@ -25,7 +25,7 @@ class NewlineTest < Test::Unit::TestCase source = File.read(filepath, binmode: true, external_encoding: Encoding::UTF_8) expected = rubyvm_lines(source) - result = YARP.parse(source, relative) + result = YARP.parse_file(filepath) assert_empty result.errors result.mark_newlines