Commit 4588886e authored by Georgios Dagkakis's avatar Georgios Dagkakis

example added to tests and documentation

parent edac5069
No preview for this file type
No preview for this file type
......@@ -188,4 +188,11 @@ class SimulationExamples(TestCase):
from dream.simulation.Examples.BalancingABuffer import main
result = main()
self.assertEquals(result['parts'], 13)
self.assertEquals(result["working_ratio"], 80)
\ No newline at end of file
self.assertEquals(result["working_ratio"], 80)
def testChangingPredecessors(self):
from dream.simulation.Examples.ChangingPredecessors import main
result = main()
self.assertEquals(result['parts'], 10)
self.assertEquals(result['simulationTime'], 36.0)
self.assertTrue(83.32 < result["working_ratio"] < 83.34)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment