فهرست منبع

Updated tests for Model compiler

Yentl Van Tendeloo 8 سال پیش
والد
کامیت
4e5c1f94be

+ 1 - 1
interface/HUTN/test/modelling_language/expected/my_petrinet

@@ -1 +1 @@
-["instantiate_node", "Place", "p1", "instantiate_attribute", "p1", "tokens", 1, "instantiate_node", "Place", "p2", "instantiate_attribute", "p2", "tokens", 3, "instantiate_node", "Transition", "t1", "instantiate_link", "P2T", "__0", "p1", "t1", "instantiate_attribute", "__0", "weight", 1, "instantiate_link", "T2P", "__1", "t1", "p2", "instantiate_attribute", "__1", "weight", 2]
+[35, "instantiate_node", "Place", "p1", "instantiate_attribute", "p1", "tokens", 1, "instantiate_node", "Place", "p2", "instantiate_attribute", "p2", "tokens", 3, "instantiate_node", "Transition", "t1", "instantiate_link", "P2T", "__0", "p1", "t1", "instantiate_attribute", "__0", "weight", 1, "instantiate_link", "T2P", "__1", "t1", "p2", "instantiate_attribute", "__1", "weight", 2]

+ 1 - 1
interface/HUTN/test/modelling_language/expected/petrinets

@@ -1 +1 @@
-["instantiate_node", "SimpleAttribute", "Natural", "instantiate_node", "Class", "Place", "model_define_attribute", "Place", "tokens", false, "Natural", "instantiate_node", "Class", "Transition", "instantiate_link", "Association", "P2T", "Place", "Transition", "model_define_attribute", "P2T", "weight", false, "Natural", "instantiate_link", "Association", "T2P", "Transition", "Place", "model_define_attribute", "T2P", "weight", false, "Natural"]
+[34, "instantiate_node", "SimpleAttribute", "Natural", "instantiate_node", "Class", "Place", "model_define_attribute", "Place", "tokens", false, "Natural", "instantiate_node", "Class", "Transition", "instantiate_link", "Association", "P2T", "Place", "Transition", "model_define_attribute", "P2T", "weight", false, "Natural", "instantiate_link", "Association", "T2P", "Transition", "Place", "model_define_attribute", "T2P", "weight", false, "Natural"]

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
interface/HUTN/test/modelling_language/expected/petrinets_constraints


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
interface/HUTN/test/modelling_language/expected/simpleclassdiagrams


+ 3 - 3
interface/HUTN/test/modelling_language/test_compile.py

@@ -9,9 +9,9 @@ def compile_file(obj, filename):
     try:
         expected = json.loads(open(util.get_expected_path(filename)).read())
     except:
-        f = open(util.get_expected_path(filename), 'w')
-        f.write(json.dumps(result))
-        f.close()
+        #f = open(util.get_expected_path(filename), 'w')
+        #f.write(json.dumps(result))
+        #f.close()
         pass
     assert result == expected