Debian Codegraph @

tests/testthat/test-rainbow_fun.R

raw
1 # library(testthat)
2 # library(dendextend)
3
4
5 context("rainbow_fun")
6
7
8 test_that("rainbow_fun works", {
9
10 dend <- as.dendrogram(hclust(dist(mtcars)))
11
12 # if colorspace not installed
13 expect_no_error(with_mocked_bindings(
14 rainbow_fun(1),
15 requireNamespace = function(...) FALSE
16 ))
17
18 })