indentation
This commit is contained in:
parent
d00a6e8ac7
commit
7d1a91705b
1 changed files with 4 additions and 4 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue