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
def test_stack_extract
stack, args = Rpl::Lang.stack_extract [{ value: 1, type: :numeric },
{ value: 2, type: :numeric }],
[:any]
{ value: 2, type: :numeric }],
[:any]
assert_equal [{ value: 1, type: :numeric }],
stack
assert_equal [{ value: 2, type: :numeric }],
args
stack, args = Rpl::Lang.stack_extract [{ value: 'test', type: :string },
{ value: 2, type: :numeric }],
[[:numeric], :any]
{ value: 2, type: :numeric }],
[[:numeric], :any]
assert_equal [],
stack
assert_equal [{ value: 2, type: :numeric },