diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-01-20 18:51:27 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-01-20 18:51:27 +0000 |
commit | 7e055c6eaf4291539c77932b29b8db0cc42c5d8c (patch) | |
tree | e59febf7e5ae32578e9455ff86942057013f4270 /ExampleAssessments/CMP-4009B.yml | |
parent | e39f4203ca1c08827bfe9b9a35c2034d71703624 (diff) | |
download | Smarker-7e055c6eaf4291539c77932b29b8db0cc42c5d8c.tar.gz Smarker-7e055c6eaf4291539c77932b29b8db0cc42c5d8c.zip |
started work on templating
Diffstat (limited to 'ExampleAssessments/CMP-4009B.yml')
-rw-r--r-- | ExampleAssessments/CMP-4009B.yml | 40 |
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) + |