Selaa lähdekoodia

Fixed bug in test_constructors_models

Yentl Van Tendeloo 9 vuotta sitten
vanhempi
commit
91f9981e57

+ 3 - 3
integration/test_constructors_al.py

@@ -160,14 +160,14 @@ class TestConstructorsActionLanguage(unittest.TestCase):
 
     def test_constructors_declare_and_assign(self):
         commands = ['"declare"',
-                        1,
+                        '"1"',
                         'true',
                     '"assign"',
-                        '"resolve"', 1,
+                        '"resolve"', '"1"',
                         '"const"', '5',
                         'true',
                     '"output"',
-                        '"access"', '"resolve"', 1,
+                        '"access"', '"resolve"', '"1"',
                         'true',
                     '"return"',
                         'true',

+ 3 - 3
integration/test_constructors_models.py

@@ -187,7 +187,7 @@ def add_constraints(model):
             '"add_constraint"', model, '"Integer"',
                 '"funcdef"',
                 '"constraint"',
-                '2', model*100, model*100+1,
+                '2', '"%s"' % (model*100), '"%s"' % (model*100+1),
                     '"if"',
                         '"call"',
                             '"access"', '"resolve"', '"is_physical_int"',
@@ -198,10 +198,10 @@ def add_constraints(model):
                                 '"call"',
                                     '"access"', '"resolve"', '"dict_read"',
                                     '2',
-                                    '"access"', '"resolve"', model*100,
+                                    '"access"', '"resolve"', '"%s"' % (model*100),
                                     '"const"', '"model"',
                                     'false',
-                                '"access"', '"resolve"', model*100+1,
+                                '"access"', '"resolve"', '"%s"' % (model*100+1),
                                 'false',
                             'false',
                         '"return"',