File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,19 +13,22 @@ def test_join
1313 assert_equal 0 , joined . start_offset
1414 assert_equal 10 , joined . length
1515
16- assert_raise ( RuntimeError , "Incompatible locations" ) do
16+ e = assert_raise ( RuntimeError ) do
1717 argument . location . join ( receiver . location )
1818 end
19+ assert_equal "Incompatible locations" , e . message
1920
2021 other_argument = Prism . parse_statement ( "1234 + 567" ) . arguments . arguments . first
2122
22- assert_raise ( RuntimeError , "Incompatible sources" ) do
23+ e = assert_raise ( RuntimeError ) do
2324 other_argument . location . join ( receiver . location )
2425 end
26+ assert_equal "Incompatible sources" , e . message
2527
26- assert_raise ( RuntimeError , "Incompatible sources" ) do
28+ e = assert_raise ( RuntimeError ) do
2729 receiver . location . join ( other_argument . location )
2830 end
31+ assert_equal "Incompatible sources" , e . message
2932 end
3033
3134 def test_character_offsets
You can’t perform that action at this time.
0 commit comments