File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ test_that("tau ", {
13
13
run(hc )
14
14
out <- fetchvars(hc , dates = 1750 : 2100 , vars = LIFETIME_OH())
15
15
16
+ head(out )
17
+
18
+
16
19
expect_equal(LIFETIME_OH(), " TAU_OH" )
17
20
expect_lte(mean(out $ value ), 8 )
18
21
expect_gte(mean(out $ value ), 6.6 )
@@ -43,12 +46,12 @@ test_that("H2 emissions ", {
43
46
diff <- abs(out $ value - out2 $ value )
44
47
45
48
# As of now the [CH4] and tau oh should not change
46
- expect_equal(unique (diff [out $ variable == CONCENTRATIONS_CH4()]), 0 )
47
- expect_equal(unique (diff [out $ variable == LIFETIME_OH()]), 0 )
49
+ expect_equal(mean (diff [out $ variable == CONCENTRATIONS_CH4()]), 0 )
50
+ expect_equal(mean (diff [out $ variable == LIFETIME_OH()]), 0 )
48
51
49
52
# But if we can change the H2 emissions we should see a difference in
50
53
# H2 emissions between the two new runs!
51
- expect_equal(unique (diff [out $ variable == EMISSIONS_H2()]), new_val )
54
+ expect_equal(mean (diff [out $ variable == EMISSIONS_H2()]), new_val )
52
55
53
56
})
54
57
You can’t perform that action at this time.
0 commit comments