There was an error while loading. Please reload this page.
1 parent c52a4d9 commit 8cf5cb8Copy full SHA for 8cf5cb8
1 file changed
inst/tinytest/test_nc.R
@@ -42,7 +42,9 @@ expect_true(all(c("d2m", "sp", "ssrd", "t2m", "tp", "u10", "v10") %in%
42
unique(varnames(rall))))
43
44
va <- values(rall)
45
-expect_equivalent(va[1, 1], 295.4049, tolerance = 1e-3)
+# Variable order follows the driver (not alphabetical); check a known scaled value by name
46
+i_d2m <- grep("^d2m", names(rall))[1]
47
+expect_equivalent(va[1, i_d2m], 295.4049, tolerance = 1e-3)
48
49
ea <- extract(rall, xy)
50
expect_equal(ncol(ea), 336)
0 commit comments