From 7e6210dc270a64f848faeb3f37a725e304a76f76 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Thu, 2 Jan 2025 14:37:37 -0500 Subject: [PATCH] Fix changes in syntax error locations after Prism upgrade --- test/rbi/parser_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rbi/parser_test.rb b/test/rbi/parser_test.rb index bb237602..1f5e9b73 100644 --- a/test/rbi/parser_test.rb +++ b/test/rbi/parser_test.rb @@ -1020,7 +1020,7 @@ def bar "to close the `def` statement.", e.message, ) - assert_equal("-:2:0", e.location.to_s) + assert_equal("-:1:7", e.location.to_s) e = assert_raises(ParseError) do Parser.parse_string(<<~RBI) @@ -1097,7 +1097,7 @@ class Foo "to close the `class` statement.", e.message, ) - assert_equal("test_parse_real_file_with_error.rbi:2:0", e.location.to_s) + assert_equal("test_parse_real_file_with_error.rbi:1:9", e.location.to_s) FileUtils.rm_rf(path) end