We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fe213 commit 7e4fc34Copy full SHA for 7e4fc34
tests/colaTest.py
@@ -4,6 +4,14 @@
4
5
from _basics_no_listcomp import *
6
7
+@t.passed(doctest_ok)
8
+def has_functions():
9
+ """alle gevraagde functies zijn aanwezig"""
10
+ assert "check_coin" in static.getFunctionDefinitions(), "`check_coin` is niet aanwezig"
11
+ assert "determine_due" in static.getFunctionDefinitions(), "`determine_due` is niet aanwezig"
12
+ assert "prompt_coin" not in static.getFunctionDefinitions(), "`prompt_coin` is aanwezig, maar dat staat niet in de opdracht"
13
+ assert ast.While in static.AbstractSyntaxTree(), "er wordt geen gebruik gemaakt van een `while`-loop"
14
+
15
@t.passed(doctest_ok)
16
@t.test(10)
17
def checks_coin(test):
0 commit comments