summaryrefslogtreecommitdiffstats
path: root/ExampleAssessments/example.yml
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-01-19 17:05:53 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-01-19 17:05:53 +0000
commit0404c5d319d0cf85941b20e53a7dab1e9bf71bef (patch)
tree7ca3384756c34826f41c7624064b952a98023f83 /ExampleAssessments/example.yml
parenteb5b1d2889aa5e408309f5d89989768ff19bc7f4 (diff)
downloadSmarker-0404c5d319d0cf85941b20e53a7dab1e9bf71bef.tar.gz
Smarker-0404c5d319d0cf85941b20e53a7dab1e9bf71bef.zip
added testing and generating testing reports
Diffstat (limited to 'ExampleAssessments/example.yml')
-rw-r--r--ExampleAssessments/example.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/ExampleAssessments/example.yml b/ExampleAssessments/example.yml
index bab1fb0..17ab9b0 100644
--- a/ExampleAssessments/example.yml
+++ b/ExampleAssessments/example.yml
@@ -12,6 +12,15 @@ files:
- 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
- aFileThatIsntThere.py:
functions:
- hello_world(2)
@@ -19,4 +28,11 @@ files:
classes:
- Dog:
- Cat:
- - Kitten: \ No newline at end of file
+ - Kitten:
+ tests:
+ - |
+ nibbles = animals.Kitten()
+ assert nibbles.speak() == "nyaa~~"
+ - |
+ milton = animals.Dog()
+ assert milton.move() == "*moves*" \ No newline at end of file