Skip to content

Commit 89bcc83

Browse files
committed
lenience
1 parent a7fe51f commit 89bcc83

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

tests/klimaatTest.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,33 @@ def testMethod():
3737
In 2018 varieerde de temperatuur tussen -4.6° op 28-02 en 35.7° op 26-07
3838
In 2019 varieerde de temperatuur tussen -1.1° op 24-01 en 37.5° op 25-07""")
3939

40+
o15 = ("""CLIMATE ANALYSIS
41+
42+
Data file
43+
-----------
44+
Filename: climate.csv
45+
First date: 01-01-1901
46+
Last date: 31-12-2019
47+
48+
Basic information
49+
-----------------
50+
Lowest temperature: -11.4° on 26-01-1942
51+
Highest temperature: 37.5° on 25-07-2019
52+
Average temperature: 13.6°
53+
54+
Extremes 2010-2019
55+
------------------
56+
In 2010 the temperature varied between -6.1° on 02-12 and 34.4° on 09-07
57+
In 2011 the temperature varied between -0.1° on 31-01 and 32.2° on 28-06
58+
In 2012 the temperature varied between -5.1° on 03-02 and 33.0° on 19-08
59+
In 2013 the temperature varied between -2.8° on 17-01 and 34.0° on 02-08
60+
In 2014 the temperature varied between 1.0° on 03-12 and 32.9° on 19-07
61+
In 2015 the temperature varied between -1.3° on 23-01 and 33.1° on 01-07
62+
In 2016 the temperature varied between -0.8° on 29-12 and 32.9° on 20-07
63+
In 2017 the temperature varied between -1.9° on 18-01 and 31.9° on 27-05
64+
In 2018 the temperature varied between -4.6° on 28-02 and 35.7° on 26-07
65+
In 2019 the temperature varied between -1.1° on 24-01 and 37.5° on 25-07""")
66+
4067
o2 = ("""CLIMATE ANALYSIS
4168
4269
Data file
@@ -64,6 +91,6 @@ def testMethod():
6491
In 2018 the temperature varied between -4.6° on 28-02 and 35.7° on 26-07
6592
In 2019 the temperature varied between -1.1° on 24-01 and 37.5° on 25-07""")
6693
output = lib.outputOf(test.fileName, overwriteAttributes = [("__name__", "__main__")]).strip()
67-
return output == o1.strip() or output == o2.strip()
94+
return output == o1.strip() or output == o2.strip() or output == o15.strip()
6895
test.test = testMethod
6996
test.description = lambda : "prints exactly the right output"

0 commit comments

Comments
 (0)