Skip to content

Commit 5d12c19

Browse files
committed
Avoiding rounding ambiguity in test
1 parent e95aaed commit 5d12c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-15-properties.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_that("colour properties can be manipulated", {
1515
expect_equal(hue("red",delta(240)), shade("#0000FF"), hexonly=TRUE)
1616
expect_equal(hue("blue",delta(240)), shade("#00FF00"), hexonly=TRUE)
1717
expect_equal(lightness("red",scalefac(0.5)), shade("#A60000"), hexonly=TRUE)
18-
expect_equal(brightness("red",scalefac(0.3,0.5)), c("#4D0000","#800000"), hexonly=TRUE)
18+
expect_equal(brightness("red",scalefac(0.4,0.6)), c("#660000","#990000"), hexonly=TRUE)
1919
expect_equivalent(coords(brightness("grey40",c(0.2,0.6))), matrix(c(0,0,0,0,0.2,0.6),nrow=2))
2020
})
2121

0 commit comments

Comments
 (0)