Skip to content

Commit 02dea9b

Browse files
committed
kl
1 parent 01a2249 commit 02dea9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/klimaatTest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,6 @@ def testMethod():
112112
def test_hittegolven(test):
113113
"""functie `heatwaves` werkt correct"""
114114
assert getFunction("heatwaves")('climate.csv', 1901, 1920) == {1911: ((8, 8), (14, 8))}, "geprobeerd: heatwaves('climate.csv', 1901, 1920)"
115+
bla = getFunction("heatwaves")('climate.csv', 1901, 2019)
116+
assert 1959 not in bla.keys(), "let op: 1959 heeft geen hittegolf, want een hittegolf is minstens 5 dagen lang"
115117
assert getFunction("heatwaves")('climate.csv', 1901, 2019) == {1911: ((8, 8), (14, 8)), 1922: ((21, 5), (25, 5)), 1923: ((5, 7), (14, 7)), 1941: ((20, 6), (26, 6)), 1947: ((14, 8), (21, 8)), 1948: ((26, 7), (30, 7)), 1975: ((29, 7), (15, 8)), 1976: ((23, 6), (9, 7)), 1982: ((29, 7), (4, 8)), 1983: ((4, 7), (12, 7)), 1990: ((26, 7), (4, 8)), 1994: ((19, 7), (31, 7)), 1995: ((29, 7), (3, 8)), 1997: ((5, 8), (13, 8)), 1999: ((28, 7), (4, 8)), 2001: ((22, 8), (26, 8)), 2003: ((31, 7), (13, 8)), 2004: ((2, 8), (11, 8)), 2005: ((18, 6), (24, 6)), 2006: ((30, 6), (6, 7)), 2013: ((21, 7), (27, 7)), 2015: ((30, 6), (5, 7)), 2018: ((15, 7), (27, 7)), 2019: ((22, 7), (27, 7))}, "geprobeerd: heatwaves('climate.csv', 1901, 2019)"

0 commit comments

Comments
 (0)