diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-02-16 15:45:37 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-02-16 15:45:37 +0000 |
commit | e5203f74000dc083d3e4024725a0e50656bf776b (patch) | |
tree | 4666d361615e5ed5503470c6e0a8f6e4e352dc8b /ExampleAssessments | |
parent | 376c8bef903657e020e482037b94a7b63514f640 (diff) | |
download | Smarker-e5203f74000dc083d3e4024725a0e50656bf776b.tar.gz Smarker-e5203f74000dc083d3e4024725a0e50656bf776b.zip |
fixed bug when client classes weren't present
Diffstat (limited to 'ExampleAssessments')
-rw-r--r-- | ExampleAssessments/example.yml | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/ExampleAssessments/example.yml b/ExampleAssessments/example.yml index c8192a1..215a959 100644 --- a/ExampleAssessments/example.yml +++ b/ExampleAssessments/example.yml @@ -1,58 +1,58 @@ -name: CMP-5021B-19-20 -files: - - example.py: - classes: - - Application: - methods: - - __init__(3) - - a_method_with_defaults(3) - - add(3) - - aMethodThatIsntThere(1) - functions: - - hello_world(2) - - an_undocumented_function(0) - - aFunctionThatIsntThere(2) - - greet(2) - tests: - - | - dateOne = example.MyDate(day = 12, month = 8, year = 2001) - dateTwo = example.MyDate(day = 12, month = 8, year = 2001) - assert dateOne == dateTwo - - | - dateOne = example.MyDate(day = 12, month = 8, year = 2001) - dateTwo = example.MyDate(day = 5, month = 4, year = 1999) - assert dateOne == dateTwo - run: - - python example.py 3: - regexes: - - hello world\! - - python example.py 1: - regexes: - - hello world\! - - aFileThatIsntThere.py: - functions: - - hello_world(2) - - animals.py: - classes: - - Dog: - - Cat: - - Kitten: - tests: - - | - nibbles = animals.Kitten() - assert nibbles.speak() == "nyaa~~" - - | - milton = animals.Dog() - assert milton.move() == "*moves*" - run: - - python animals.py: - monitor: animals.txt - regexes: - - TURRÓN - - meow \(but cuter\) -produced_files: - - animals.txt -dependencies: - files: - - ../wsData.txt +name: CMP-5021B-19-20
+files:
+ - example.py:
+ classes:
+ - Application:
+ methods:
+ - __init__(3)
+ - a_method_with_defaults(3)
+ - add(3)
+ - aMethodThatIsntThere(1)
+ functions:
+ - hello_world(2)
+ - an_undocumented_function(0)
+ - aFunctionThatIsntThere(2)
+ - greet(2)
+ tests:
+ - |
+ dateOne = example.MyDate(day = 12, month = 8, year = 2001)
+ dateTwo = example.MyDate(day = 12, month = 8, year = 2001)
+ assert dateOne == dateTwo
+ - |
+ dateOne = example.MyDate(day = 12, month = 8, year = 2001)
+ dateTwo = example.MyDate(day = 5, month = 4, year = 1999)
+ assert dateOne == dateTwo
+ run:
+ - python example.py 3:
+ regexes:
+ - hello world\!
+ - python example.py 1:
+ regexes:
+ - hello world\!
+ - aFileThatIsntThere.py:
+ functions:
+ - hello_world(2)
+ - animals.py:
+ classes:
+ - Dog:
+ - Cat:
+ - Kitten:
+ tests:
+ - |
+ nibbles = animals.Kitten()
+ assert nibbles.speak() == "nyaa~~"
+ - |
+ milton = animals.Dog()
+ assert milton.move() == "*moves*"
+ run:
+ - python animals.py:
+ monitor: animals.txt
+ regexes:
+ - TURRÓN
+ - meow \(but cuter\)
+produced_files:
+ - animals.txt
+dependencies:
+ files:
+ - ../wsData.txt
- ../IncludeDirectory
\ No newline at end of file |