tests/testthat/test-Hmisc.R
raw| 1 | # library(testthat) |
| 2 | # library(dendextend) |
| 3 | |
| 4 | |
| 5 | context("as.dendrogram.varclus") |
| 6 | |
| 7 | |
| 8 | test_that("as.dendrogram.varclus works", { |
| 9 | |
| 10 | object <- list() |
| 11 | hc <- hclust(dist(mtcars)) |
| 12 | object$hclust <- hc |
| 13 | |
| 14 | expect_identical( |
| 15 | as.dendrogram.varclus(object), |
| 16 | as.dendrogram(hc) |
| 17 | ) |
| 18 | |
| 19 | }) |