Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
410e9508
Commit
410e9508
authored
Aug 31, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test added for example
parent
e50203c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
dream/simulation/Examples/CompoundMachine.py
dream/simulation/Examples/CompoundMachine.py
+0
-1
dream/tests/testSimulationExamples.py
dream/tests/testSimulationExamples.py
+7
-1
No files found.
dream/simulation/Examples/CompoundMachine.py
View file @
410e9508
...
...
@@ -93,7 +93,6 @@ def main(test=0):
#output the trace of the simulation
ExcelHandler
.
outputTrace
(
'CompoundMachine'
)
print
G
.
maxSimTime
if
test
:
return
G
.
maxSimTime
...
...
dream/tests/testSimulationExamples.py
View file @
410e9508
...
...
@@ -214,4 +214,10 @@ class SimulationExamples(TestCase):
from
dream.simulation.Examples.NonStarvingLineBatches
import
main
result
=
main
(
test
=
1
)
self
.
assertEquals
(
result
[
'batches'
],
4
)
self
.
assertEquals
(
result
[
"working_ratio"
],
100
)
\ No newline at end of file
self
.
assertEquals
(
result
[
"working_ratio"
],
100
)
def
testCompoundMachine
(
self
):
from
dream.simulation.Examples.CompoundMachine
import
main
result
=
main
(
test
=
1
)
self
.
assertTrue
(
5.8
<
result
<
5.9
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment