mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 23:45:55 +02:00
parent
2b08406cd0
commit
e9152bc9da
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
require_relative "test_helper"
|
require_relative "test_helper"
|
||||||
|
|
||||||
return if RUBY_VERSION < "3.2" || RUBY_ENGINE == "truffleruby"
|
return if RUBY_VERSION < "3.2"
|
||||||
|
|
||||||
module Prism
|
module Prism
|
||||||
class ParametersSignatureTest < TestCase
|
class ParametersSignatureTest < TestCase
|
||||||
|
@ -55,6 +55,8 @@ module Prism
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_key_ordering
|
def test_key_ordering
|
||||||
|
omit("TruffleRuby returns keys in order they were declared") if RUBY_ENGINE == "truffleruby"
|
||||||
|
|
||||||
assert_parameters([[:keyreq, :a], [:keyreq, :b], [:key, :c], [:key, :d]], "a:, c: 1, b:, d: 2")
|
assert_parameters([[:keyreq, :a], [:keyreq, :b], [:key, :c], [:key, :d]], "a:, c: 1, b:, d: 2")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue