| 1 |
# library(testthat) |
| 2 |
# library(dendextend) |
| 3 |
|
| 4 |
context("General functions") |
| 5 |
|
| 6 |
|
| 7 |
test_that("all.unique works", { |
| 8 |
expect_true(all_unique(c(1:10))) |
| 9 |
expect_true(all_unique(c(1, 3, 2))) |
| 10 |
expect_false(all_unique(c(1, 1, 2))) |
| 11 |
expect_false(all_unique(c(1:5, 1, 1))) |
| 12 |
}) |