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
|
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 },
|
||||||
|
|
Loading…
Reference in a new issue