Skip to content

Commit

Permalink
Merge pull request #2005 from ruby/fix-test
Browse files Browse the repository at this point in the history
Skip `AbstractSyntaxTree` test with ruby-3.4
  • Loading branch information
soutaro authored Sep 13, 2024
2 parents 6ea40c4 + a8e4ba0 commit ffea4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/rbs/runtime_prototype_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def initialize: () -> void
end
end

if RUBY_VERSION >= '3.1'
if RUBY_VERSION >= '3.1' && RUBY_VERSION <= "3.3"
class TestForYield
def m1() yield end
def m2() yield 42 end
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/RubyVM_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def test_parse_file
end

def test_of
return if RUBY_VERSION >= "3.4.0"
assert_send_type "(::Proc | ::Method | ::UnboundMethod body, ?keep_script_lines: bool, ?error_tolerant: bool, ?keep_tokens: bool) -> ::RubyVM::AbstractSyntaxTree::Node?",
RubyVM::AbstractSyntaxTree, :of, method(:test_of)
end
Expand Down

0 comments on commit ffea4f6

Please sign in to comment.