We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f535ed9 commit a0581b9Copy full SHA for a0581b9
1 file changed
test/rbs/annotate/rdoc_source_test.rb
@@ -72,7 +72,9 @@ class Hello3
72
refute_predicate klass, :documented?
73
74
assert_nil RBS::Annotate::Formatter.translate(klass.comment.parse)
75
- assert_equal "", RBS::Annotate::Formatter.translate(klass.comment.parse.parts[0])
+ if part = klass.comment.parse.parts[0] # In ruby-4.1, parts is empty.
76
+ assert_equal "", RBS::Annotate::Formatter.translate(part)
77
+ end
78
end
79
80
0 commit comments