|
@@ -111,23 +111,6 @@ class TestConstructorsActionLanguageLinkable(unittest.TestCase):
|
|
commands = extend_commands(commands)
|
|
commands = extend_commands(commands)
|
|
self.assertTrue(run_barebone(commands, [None], None, timeout=True, link=["test.o"]))
|
|
self.assertTrue(run_barebone(commands, [None], None, timeout=True, link=["test.o"]))
|
|
|
|
|
|
- """
|
|
|
|
- def test_constructors_addition(self):
|
|
|
|
- commands = [('"output"',
|
|
|
|
- ('"call"',
|
|
|
|
- ('"deref"', '"primitives/integer_addition"'),
|
|
|
|
- '2',
|
|
|
|
- ('"const"', '1'),
|
|
|
|
- ('"const"', '5'),
|
|
|
|
- 'false',
|
|
|
|
- ),
|
|
|
|
- 'true',
|
|
|
|
- ('"return"', 'true', '"const"', 'true'),
|
|
|
|
- )
|
|
|
|
- ]
|
|
|
|
- self.assertTrue(run_barebone(flatten(commands), ["6"], 1))
|
|
|
|
- """
|
|
|
|
-
|
|
|
|
def test_constructors_while_false(self):
|
|
def test_constructors_while_false(self):
|
|
commands = [
|
|
commands = [
|
|
'"while"', # While
|
|
'"while"', # While
|
|
@@ -186,7 +169,6 @@ class TestConstructorsActionLanguageLinkable(unittest.TestCase):
|
|
commands = extend_commands(commands)
|
|
commands = extend_commands(commands)
|
|
self.assertTrue(run_barebone(commands, ["5"], None, link=["test.o"]))
|
|
self.assertTrue(run_barebone(commands, ["5"], None, link=["test.o"]))
|
|
|
|
|
|
- """
|
|
|
|
def test_constructors_output_input(self):
|
|
def test_constructors_output_input(self):
|
|
commands = [
|
|
commands = [
|
|
'"output"',
|
|
'"output"',
|
|
@@ -198,8 +180,9 @@ class TestConstructorsActionLanguageLinkable(unittest.TestCase):
|
|
'false',
|
|
'false',
|
|
]
|
|
]
|
|
commands = extend_commands(commands)
|
|
commands = extend_commands(commands)
|
|
- self.assertTrue(run_barebone(commands + ['123456'], ["123456"], None, link=["test.o"]))
|
|
|
|
|
|
+ self.assertTrue(run_barebone(commands, ["123456"], None, link=["test.o"], inputs=["123456"]))
|
|
|
|
|
|
|
|
+ """
|
|
def test_constructors_funcdecl(self):
|
|
def test_constructors_funcdecl(self):
|
|
commands = ['"declare"',
|
|
commands = ['"declare"',
|
|
1,
|
|
1,
|