Skip to content

Commit b7096d5

Browse files
committed
Adding further tests
1 parent f1bfbaf commit b7096d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testthat/test-05-shade.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
context("Creating and converting shade objects")
22

33
test_that("shade objects can be created from various objects", {
4+
expect_error(shade(), "must not be empty")
5+
expect_error(shade(character(0)), "must not be empty")
6+
expect_output(print(shade("red")), "1 shade")
47
expect_equal(space(shade("red")), "sRGB")
58
expect_equivalent(coords("red"), matrix(c(1,0,0),nrow=1))
69
expect_equivalent(shade(matrix(c(1,0,0),nrow=1)), shade("#FF0000"))

0 commit comments

Comments
 (0)