Skip to content

Commit

Permalink
make independent from upcoming units version
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jan 19, 2025
1 parent 0f11f3d commit a628290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-cubble.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ test_that("cubble", {
a.cb = as_cubble(a, key = id, index = time)
a2 = st_as_stars(a.cb)
# expect_equal(a, a2)
expect_true(all.equal(drop_units(a),a2,check.attributes=FALSE))
if (packageVersion("units") < '0.8.6')
a = drop_units(a)
expect_true(all.equal(a, a2, check.attributes = FALSE))
})

0 comments on commit a628290

Please sign in to comment.