test using alias

This commit is contained in:
Gwenhael Le Moine 2021-12-09 16:30:52 +01:00
parent f123cd152c
commit 88effd8dfa
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -6,7 +6,6 @@ require 'test/unit'
require_relative '../language'
class TestLanguageTest < Test::Unit::TestCase
def test_greater_than
lang = Rpl::Language.new
lang.run '0 0.1 >'
@ -95,7 +94,7 @@ class TestLanguageTest < Test::Unit::TestCase
lang.stack
lang = Rpl::Language.new
lang.run '1 2 !='
lang.run '1 2 '
assert_equal [{ value: true, type: :boolean }],
lang.stack