summaryrefslogtreecommitdiffstats
path: root/ExampleAssessments/CMP-4009B.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ExampleAssessments/CMP-4009B.yml')
-rw-r--r--ExampleAssessments/CMP-4009B.yml40
1 files changed, 37 insertions, 3 deletions
diff --git a/ExampleAssessments/CMP-4009B.yml b/ExampleAssessments/CMP-4009B.yml
index fbadc90..c01979b 100644
--- a/ExampleAssessments/CMP-4009B.yml
+++ b/ExampleAssessments/CMP-4009B.yml
@@ -1,4 +1,4 @@
-assessment_name: CMP-4009B
+name: CMP-4009B
files:
- pjtool.py:
classes:
@@ -19,8 +19,42 @@ files:
d1 = pjtool.Date(2001, 8, 12)
d2 = pjtool.Date(1999, 4, 5)
assert d1 != d2
+ - |
+ d1 = pjtool.Date(2001, 8, 12)
+ d2 = pjtool.Date(1999, 4, 5)
+ assert d1 > d2
+ - |
+ import random
+ d1 = pjtool.Date(random.randint(2000, 2050), 8, 12)
+ d2 = pjtool.Date(random.randint(1900, 2050), 4, 5)
+ assert d1.numYears(d2) == abs(d1.year - d2.year)
+ - |
+ d1 = pjtool.Date(2020, 5, 1)
+ d2 = pjtool.Date(2020, 6, 1)
+ assert d1.numMonths(d2) == 0
+ - |
+ d1 = pjtool.Date(2020, 5, 1)
+ d2 = pjtool.Date(2020, 8, 1)
+ assert d1.numMonths(d2) == 2
- tester.py:
functions:
- dateTester(2)
-dependencies:
- - matplotlib \ No newline at end of file
+ - turbine.py:
+ classes:
+ - Turbine:
+ methods:
+ - __init__(5)
+ - __str__(1)
+ - numYearsInst(2)
+ - serviceDue(2)
+ - serviceAt(2)
+ - powerAt(2)
+ - AdvTurbine:
+ methods:
+ - __init__(5)
+ - __str__(1)
+ - numYearsInst(2)
+ - serviceDue(2)
+ - serviceAt(2)
+ - powerAt(2)
+