indentation

This commit is contained in:
Gwenhael Le Moine 2022-02-09 16:35:11 +01:00
parent d00a6e8ac7
commit 7d1a91705b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -8,16 +8,16 @@ require_relative '../lib/core'
class TestParser < Test::Unit::TestCase class TestParser < Test::Unit::TestCase
def test_stack_extract def test_stack_extract
stack, args = Rpl::Lang.stack_extract [{ value: 1, type: :numeric }, stack, args = Rpl::Lang.stack_extract [{ value: 1, type: :numeric },
{ value: 2, type: :numeric }], { value: 2, type: :numeric }],
[:any] [:any]
assert_equal [{ value: 1, type: :numeric }], assert_equal [{ value: 1, type: :numeric }],
stack stack
assert_equal [{ value: 2, type: :numeric }], assert_equal [{ value: 2, type: :numeric }],
args args
stack, args = Rpl::Lang.stack_extract [{ value: 'test', type: :string }, stack, args = Rpl::Lang.stack_extract [{ value: 'test', type: :string },
{ value: 2, type: :numeric }], { value: 2, type: :numeric }],
[[:numeric], :any] [[:numeric], :any]
assert_equal [], assert_equal [],
stack stack
assert_equal [{ value: 2, type: :numeric }, assert_equal [{ value: 2, type: :numeric },