fix the fix

This commit is contained in:
Gwenhael Le Moine 2021-11-24 13:53:41 +01:00
parent 42f02e8e94
commit 395406d516
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -15,13 +15,13 @@ class TestParser < Test::Unit::TestCase
assert_equal [{ value: 2, type: :numeric }],
args
stack, args = Rpl::Core.stack_extract [{ value: "test", type: :string },
stack, args = Rpl::Core.stack_extract [{ value: 'test', type: :string },
{ value: 2, type: :numeric }],
[:any, [:numeric]]
[[:numeric], :any]
assert_equal [],
stack
assert_equal [{ value: 2, type: :numeric },
{ value: "test", type: :string }],
{ value: 'test', type: :string }],
args
end
end