Skip to content

Commit 13478cf

Browse files
committed
Add parsing error test
1 parent 94facd8 commit 13478cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/rbs/inline_annotation_parsing_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ def test_parse__rbs_method_types_annotation
7373
assert_equal ["|"], annot.vertical_bar_locations.map(&:source)
7474
end
7575
end
76+
77+
def test_error__unknown_annotation
78+
assert_raises RBS::ParsingError do
79+
Parser.parse_inline_leading_annotation("@rbs super String", 0...)
80+
end
81+
end
7682
end

0 commit comments

Comments
 (0)