Skip to content

Commit 5dd4f61

Browse files
authored
Merge pull request #42 from OskNum/update_unit_tests
Update unit tests
2 parents da94874 + 9927b47 commit 5dd4f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test_segment.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test_that("k-clusters default output object check", {
5252
# Output table should be 3 rows
5353
expect_equal(nrow(output_kclust$OutputTable), 3)
5454
# No nulls allowed in the output table
55-
expect_equal(ncol(output_kclust$OutputTable[complete.cases(output_kclust$OutputTable), ]), 3)
55+
expect_equal(ncol(output_kclust$OutputTable[complete.cases(output_kclust$OutputTable), ]), 11)
5656
# The segment lookup should not contain any NAs
5757
expect_true(all(!is.na(output_kclust$segments$segment)))
5858
expect_true(all(!is.na(output_kclust$segments$id)))
@@ -72,7 +72,7 @@ test_that("k-clusters custom output object check", {
7272
# Output table should be 2 rows
7373
expect_equal(nrow(output_kclust$OutputTable), 2)
7474
# No nulls allowed in the output table
75-
expect_equal(ncol(output_kclust$OutputTable[complete.cases(output_kclust$OutputTable), ]), 3)
75+
expect_equal(ncol(output_kclust$OutputTable[complete.cases(output_kclust$OutputTable), ]), 11)
7676
# The segment lookup should not contain any NAs
7777
expect_true(all(!is.na(output_kclust$segments$segment)))
7878
expect_true(all(!is.na(output_kclust$segments$id)))

0 commit comments

Comments
 (0)