Commit 8b2055c2 authored by Georgios Dagkakis's avatar Georgios Dagkakis

test added for the new example (relaxed due to stochasticity)

parent 6ed56fea
...@@ -226,3 +226,8 @@ class SimulationExamples(TestCase): ...@@ -226,3 +226,8 @@ class SimulationExamples(TestCase):
result = main(test=1) result = main(test=1)
self.assertEquals(result, 2) self.assertEquals(result, 2)
def testBufferAllocation(self):
from dream.simulation.Examples.BufferAllocation import main
result = main(test=1)
self.assertTrue(80 < result["parts"] < 1000)
\ 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