Skip to content

Commit b8e0b7c

Browse files
committed
test: better tests
1 parent 4e0630a commit b8e0b7c

1 file changed

Lines changed: 48 additions & 48 deletions

File tree

tests/testthat/test-hydrogof.R

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ test_that("nse", {
1616
# same results as hydroGOF with both NA values present and without
1717
quickcheck::for_all(
1818
obs = quickcheck::double_bounded(
19-
left = -1000,
20-
right = 1000,
19+
left = -2000,
20+
right = 2000,
2121
len = 50,
2222
any_na = TRUE
2323
),
2424
sim = quickcheck::double_bounded(
25-
left = -1000,
26-
right = 1000,
25+
left = -2000,
26+
right = 2000,
2727
len = 50,
2828
any_na = TRUE
2929
),
@@ -38,14 +38,14 @@ test_that("nse", {
3838
# Without NA
3939
quickcheck::for_all(
4040
obs = quickcheck::double_bounded(
41-
left = -1000,
42-
right = 1000,
41+
left = -2000,
42+
right = 2000,
4343
len = 50,
4444
any_na = FALSE
4545
),
4646
sim = quickcheck::double_bounded(
47-
left = -1000,
48-
right = 1000,
47+
left = -2000,
48+
right = 2000,
4949
len = 50,
5050
any_na = FALSE
5151
),
@@ -65,14 +65,14 @@ test_that("kge", {
6565
# With NA
6666
quickcheck::for_all(
6767
obs = quickcheck::double_bounded(
68-
left = -1000,
69-
right = 1000,
68+
left = -2000,
69+
right = 2000,
7070
len = 50,
7171
any_na = TRUE
7272
),
7373
sim = quickcheck::double_bounded(
74-
left = -1000,
75-
right = 1000,
74+
left = -2000,
75+
right = 2000,
7676
len = 50,
7777
any_na = TRUE
7878
),
@@ -87,14 +87,14 @@ test_that("kge", {
8787
# Without NA
8888
quickcheck::for_all(
8989
obs = quickcheck::double_bounded(
90-
left = -1000,
91-
right = 1000,
90+
left = -2000,
91+
right = 2000,
9292
len = 50,
9393
any_na = FALSE
9494
),
9595
sim = quickcheck::double_bounded(
96-
left = -1000,
97-
right = 1000,
96+
left = -2000,
97+
right = 2000,
9898
len = 50,
9999
any_na = FALSE
100100
),
@@ -115,14 +115,14 @@ test_that("kge2012", {
115115
# With NA
116116
quickcheck::for_all(
117117
obs = quickcheck::double_bounded(
118-
left = -1000,
119-
right = 1000,
118+
left = -2000,
119+
right = 2000,
120120
len = 50,
121121
any_na = TRUE
122122
),
123123
sim = quickcheck::double_bounded(
124-
left = -1000,
125-
right = 1000,
124+
left = -2000,
125+
right = 2000,
126126
len = 50,
127127
any_na = TRUE
128128
),
@@ -142,14 +142,14 @@ test_that("kge2012", {
142142
# Without NA
143143
quickcheck::for_all(
144144
obs = quickcheck::double_bounded(
145-
left = -1000,
146-
right = 1000,
145+
left = -2000,
146+
right = 2000,
147147
len = 50,
148148
any_na = FALSE
149149
),
150150
sim = quickcheck::double_bounded(
151-
left = -1000,
152-
right = 1000,
151+
left = -2000,
152+
right = 2000,
153153
len = 50,
154154
any_na = FALSE
155155
),
@@ -174,14 +174,14 @@ test_that("pbias", {
174174
# With NA
175175
quickcheck::for_all(
176176
obs = quickcheck::double_bounded(
177-
left = -1000,
178-
right = 1000,
177+
left = -2000,
178+
right = 2000,
179179
len = 50,
180180
any_na = TRUE
181181
),
182182
sim = quickcheck::double_bounded(
183-
left = -1000,
184-
right = 1000,
183+
left = -2000,
184+
right = 2000,
185185
len = 50,
186186
any_na = TRUE
187187
),
@@ -196,14 +196,14 @@ test_that("pbias", {
196196
# Without NA
197197
quickcheck::for_all(
198198
obs = quickcheck::double_bounded(
199-
left = -1000,
200-
right = 1000,
199+
left = -2000,
200+
right = 2000,
201201
len = 50,
202202
any_na = FALSE
203203
),
204204
sim = quickcheck::double_bounded(
205-
left = -1000,
206-
right = 1000,
205+
left = -2000,
206+
right = 2000,
207207
len = 50,
208208
any_na = FALSE
209209
),
@@ -223,14 +223,14 @@ test_that("mse", {
223223
# With NA
224224
quickcheck::for_all(
225225
obs = quickcheck::double_bounded(
226-
left = -1000,
227-
right = 1000,
226+
left = -2000,
227+
right = 2000,
228228
len = 50,
229229
any_na = TRUE
230230
),
231231
sim = quickcheck::double_bounded(
232-
left = -1000,
233-
right = 1000,
232+
left = -2000,
233+
right = 2000,
234234
len = 50,
235235
any_na = TRUE
236236
),
@@ -245,14 +245,14 @@ test_that("mse", {
245245
# Without NA
246246
quickcheck::for_all(
247247
obs = quickcheck::double_bounded(
248-
left = -1000,
249-
right = 1000,
248+
left = -2000,
249+
right = 2000,
250250
len = 50,
251251
any_na = FALSE
252252
),
253253
sim = quickcheck::double_bounded(
254-
left = -1000,
255-
right = 1000,
254+
left = -2000,
255+
right = 2000,
256256
len = 50,
257257
any_na = FALSE
258258
),
@@ -272,14 +272,14 @@ test_that("rmse", {
272272
# With NA
273273
quickcheck::for_all(
274274
obs = quickcheck::double_bounded(
275-
left = -1000,
276-
right = 1000,
275+
left = -2000,
276+
right = 2000,
277277
len = 50,
278278
any_na = TRUE
279279
),
280280
sim = quickcheck::double_bounded(
281-
left = -1000,
282-
right = 1000,
281+
left = -2000,
282+
right = 2000,
283283
len = 50,
284284
any_na = TRUE
285285
),
@@ -294,14 +294,14 @@ test_that("rmse", {
294294
# Without NA
295295
quickcheck::for_all(
296296
obs = quickcheck::double_bounded(
297-
left = -1000,
298-
right = 1000,
297+
left = -2000,
298+
right = 2000,
299299
len = 50,
300300
any_na = FALSE
301301
),
302302
sim = quickcheck::double_bounded(
303-
left = -1000,
304-
right = 1000,
303+
left = -2000,
304+
right = 2000,
305305
len = 50,
306306
any_na = FALSE
307307
),

0 commit comments

Comments
 (0)