Преглед на файлове

Fixed syntax errors in test

Yentl Van Tendeloo преди 9 години
родител
ревизия
24d22363dd
променени са 1 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 9 9
      integration/test_pn_interface.py

+ 9 - 9
integration/test_pn_interface.py

@@ -391,49 +391,49 @@ Element function constraint(model : Element, name : String):
 \t\tdestination = readAssociationDestination(model, association)
 \t\tback_associations = allOutgoingAssociationInstances(model, destination, "tile_right")
 \t\tif (list_len(back_associations) < 1):
-\t\t\treturn "Left link does not have a right link back"
+\t\t\treturn "Left link does not have a right link back"!
 \t\telse:
 \t\t\tassociation = set_pop(back_associations)
 \t\t\tdestination = readAssociationDestination(model, association)
 \t\t\tif (destination != name):
-\t\t\t\treturn "Right link does not have a left link back to the same tile"
+\t\t\t\treturn "Right link does not have a left link back to the same tile"!
 \tassociations = allOutgoingAssociationInstances(model, name, "tile_right")
 \twhile (0 < list_len(associations)):
 \t\tassociation = set_pop(associations)
 \t\tdestination = readAssociationDestination(model, association)
 \t\tback_associations = allOutgoingAssociationInstances(model, destination, "tile_left")
 \t\tif (list_len(back_associations) < 1):
-\t\t\treturn "Right link does not have a left link back"
+\t\t\treturn "Right link does not have a left link back"!
 \t\telse:
 \t\t\tassociation = set_pop(back_associations)
 \t\t\tdestination = readAssociationDestination(model, association)
 \t\t\tif (destination != name):
-\t\t\t\treturn "Right link does not have a left link back to the same tile"
+\t\t\t\treturn "Right link does not have a left link back to the same tile"!
 \tassociations = allOutgoingAssociationInstances(model, name, "tile_top")
 \twhile (0 < list_len(associations)):
 \t\tassociation = set_pop(associations)
 \t\tdestination = readAssociationDestination(model, association)
 \t\tback_associations = allOutgoingAssociationInstances(model, destination, "tile_bottom")
 \t\tif (list_len(back_associations) < 1):
-\t\t\treturn "Top link does not have a bottom link back"
+\t\t\treturn "Top link does not have a bottom link back"!
 \t\telse:
 \t\t\tassociation = set_pop(back_associations)
 \t\t\tdestination = readAssociationDestination(model, association)
 \t\t\tif (destination != name):
-\t\t\t\treturn "Top link does not have a bottom link back to the same tile"
+\t\t\t\treturn "Top link does not have a bottom link back to the same tile"!
 \tassociations = allOutgoingAssociationInstances(model, name, "tile_bottom")
 \twhile (0 < list_len(associations)):
 \t\tassociation = set_pop(associations)
 \t\tdestination = readAssociationDestination(model, association)
 \t\tback_associations = allOutgoingAssociationInstances(model, destination, "tile_top")
 \t\tif (list_len(back_associations) < 1):
-\t\t\treturn "Bottom link does not have a top link back"
+\t\t\treturn "Bottom link does not have a top link back"!
 \t\telse:
 \t\t\tassociation = set_pop(back_associations)
 \t\t\tdestination = readAssociationDestination(model, association)
 \t\t\tif (destination != name):
-\t\t\t\treturn "Bottom link does not have a top link back to the same tile"
-\treturn "OK"
+\t\t\t\treturn "Bottom link does not have a top link back to the same tile"!
+\treturn "OK"!
             """
 
         constructors = get_constructor(constraint_code)