We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f535ed9 + a0581b9 commit 9e81252Copy full SHA for 9e81252
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