Skip to content

Commit 8cf5cb8

Browse files
committed
r
1 parent c52a4d9 commit 8cf5cb8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

inst/tinytest/test_nc.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ expect_true(all(c("d2m", "sp", "ssrd", "t2m", "tp", "u10", "v10") %in%
4242
unique(varnames(rall))))
4343

4444
va <- values(rall)
45-
expect_equivalent(va[1, 1], 295.4049, tolerance = 1e-3)
45+
# 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)
4648

4749
ea <- extract(rall, xy)
4850
expect_equal(ncol(ea), 336)

0 commit comments

Comments
 (0)