瀏覽代碼

Fixed typo in tests

Yentl Van Tendeloo 9 年之前
父節點
當前提交
a4a1ae0517
共有 2 個文件被更改,包括 2 次插入8 次删除
  1. 0 6
      bootstrap/conformance_scd.alc
  2. 2 2
      integration/test_constructors_models.py

+ 0 - 6
bootstrap/conformance_scd.alc

@@ -23,7 +23,6 @@ Boolean function is_nominal_subtype(metamodel : Element, subclass : Element, sup
 	Element new_superclass
 	Element result
 
-	log((("Nominal subtype? " + reverseKeyLookup(metamodel["model"], subclass)) + " --|> ") + reverseKeyLookup(metamodel["model"], superclass))
 	superclasses = get_superclasses(metamodel, subclass)
 
 	while (0 < list_len(superclasses)):
@@ -123,8 +122,6 @@ String function conformance_scd(model : Element):
 
 			if (list_len(tmp_dict) > 0):
 				dict_add(cardinalities, key, tmp_dict)
-		else:
-			log("Not checking cardinalities of " + key)
 
 	// Iterate over each element of the model, finding out whether everything is fine
 	keys = dict_keys(model["model"])
@@ -159,7 +156,6 @@ String function conformance_scd(model : Element):
 		//   A  ---------------------> B
 		//
 		// First the incoming, so we are at B in the above figure
-		log("At element " + model_name)
 		Integer lower_val
 		Integer upper_val
 		Integer instances
@@ -169,7 +165,6 @@ String function conformance_scd(model : Element):
 			check_type = set_pop(check_list)
 			if (dict_in(cardinalities, reverseKeyLookup(metamodel["model"], check_type))):
 				// Cardinalities defined for this association, so check them
-				log("  check " + reverseKeyLookup(metamodel["model"], check_type))
 				lower_val = cardinalities[check_type]["tlc"]
 				upper_val = cardinalities[check_type]["tlc"]
 				instances = list_len(allIncomingAssociationInstances(model, element, check_type))
@@ -188,7 +183,6 @@ String function conformance_scd(model : Element):
 			check_type = set_pop(check_list)
 			if (dict_in(cardinalities, reverseKeyLookup(metamodel["model"], check_type))):
 				// Cardinalities defined for this association, so check them
-				log("  check " + reverseKeyLookup(metamodel["model"], check_type))
 				lower_val = cardinalities[check_type]["slc"]
 				upper_val = cardinalities[check_type]["slc"]
 				instances = list_len(allOutgoingAssociationInstances(model, element, check_type))

+ 2 - 2
integration/test_constructors_models.py

@@ -88,9 +88,9 @@ instantiate_scd = [
         '"instantiate_link"', 2, '"Association"', '"T2P"', '"Transition"', '"Place"',
         '"instantiate_link"', 2, '"Association"', '"Place_tokens"', '"Place"', '"Integer"',
         '"instantiate_attribute"', 2, '"Place_tokens"', '"name"', '"tokens"',
-        '"instantiate_link"', 2, '"Association"', '"weight"', '"P2T"', '"Integer"',
+        '"instantiate_link"', 2, '"Association"', '"P2T_weight"', '"P2T"', '"Integer"',
         '"instantiate_attribute"', 2, '"P2T_weight"', '"name"', '"weight"',
-        '"instantiate_link"', 2, '"Association"', '"weight"', '"T2P"', '"Integer"',
+        '"instantiate_link"', 2, '"Association"', '"T2P_weight"', '"T2P"', '"Integer"',
         '"instantiate_attribute"', 2, '"T2P_weight"', '"name"', '"weight"',
         '"exit"',
     ]