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
73edfef0
Commit
73edfef0
authored
Aug 20, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test and documentation updated
parent
2f17b9a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
ManPy_documentation.doc
ManPy_documentation.doc
+0
-0
ManPy_documentation.pdf
ManPy_documentation.pdf
+0
-0
dream/tests/testSimulationExamples.py
dream/tests/testSimulationExamples.py
+9
-2
No files found.
ManPy_documentation.doc
View file @
73edfef0
No preview for this file type
ManPy_documentation.pdf
View file @
73edfef0
No preview for this file type
dream/tests/testSimulationExamples.py
View file @
73edfef0
...
...
@@ -122,13 +122,20 @@ class SimulationExamples(TestCase):
self
.
assertTrue
(
23.09
<
result
[
"working_ratio_M1"
]
<
23.1
)
self
.
assertTrue
(
26.9
<
result
[
"working_ratio_M2"
]
<
26.91
)
#NOTE: testParallelServers3 is extension of testParallelServers2 so this test really tests if they both run
def
testParallelServers3
(
self
):
def
testParallelServers2
(
self
):
from
dream.simulation.Examples.ParallelServers3
import
main
result
=
main
()
self
.
assertEquals
(
result
[
'parts'
],
2880
)
self
.
assertTrue
(
46.18
<
result
[
"working_ratio_M1"
]
<
46.19
)
self
.
assertTrue
(
3.81
<
result
[
"working_ratio_M2"
]
<
3.82
)
#NOTE: testParallelServers4 is extension of testParallelServers4 so this test really tests if they both run
def
testParallelServers4
(
self
):
from
dream.simulation.Examples.ParallelServers4
import
main
result
=
main
()
self
.
assertEquals
(
result
[
'parts'
],
2880
)
self
.
assertTrue
(
46.18
<
result
[
"working_ratio_M1"
]
<
46.19
)
self
.
assertTrue
(
3.81
<
result
[
"working_ratio_M2"
]
<
3.82
)
self
.
assertEquals
(
result
[
'NumM1'
],
2660
)
self
.
assertEquals
(
result
[
'NumM2'
],
220
)
...
...
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