stRoke/tests/testthat/test-generic_stroke.R

6 lines
290 B
R
Raw Normal View History

test_that("generic_stroke() runs!", {
iris$ord<-factor(sample(1:3,size=nrow(iris),replace=TRUE),ordered=TRUE)
result <- generic_stroke(df=iris, group = "Species", score = "ord", variables = colnames(iris)[1:3])
expect_equal(length(result), 3)
2023-01-03 14:12:29 +01:00
expect_equal(class(result), "list")
})