Skip to content

Commit 2ab4ba0

Browse files
committed
cleaning code
1 parent d9a310c commit 2ab4ba0

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tests/testthat/test-acro_pivot_table.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ test_that("acro_pivot_table without initialising ACRO object first", {
66
test_that("acro_pivot_table works", {
77
testthat::skip_on_cran()
88
expected_table <- data.frame(
9-
# "(mean', 'children')" = c(3.272222, 3.242593, 3.241667),
10-
# "('std', 'children')" = c(2.48458394, 2.43848908, 2.42963966),
11-
"mean children" = c(3.272222, 3.242593, 3.241667),
12-
"std children" = c(2.48458394, 2.43848908, 2.42963966),
9+
"('mean', 'children')" = c(3.272222, 3.242593, 3.241667),
10+
"('std', 'children')" = c(2.48458394, 2.43848908, 2.42963966),
1311
check.names = FALSE
1412
)
1513

@@ -19,7 +17,5 @@ test_that("acro_pivot_table works", {
1917

2018
acro_init()
2119
table <- acro_pivot_table(data = nursery_data, index = "parents", values = "children", aggfunc = list("mean", "std"))
22-
print( table)
23-
print(expected_table)
2420
expect_equal(table[, -1, drop = FALSE], expected_table[, -1, drop = FALSE])
2521
})

0 commit comments

Comments
 (0)