Skip to content

Commit

Permalink
Check that stats::alias is not masked
Browse files Browse the repository at this point in the history
  • Loading branch information
zero323 committed May 4, 2017
1 parent 2d5ace2 commit 5fe5495
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/pkg/inst/tests/testthat/test_sparkSQL.R
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,10 @@ test_that("select with column", {
expect_equal(columns(select(df5, column("table.name"))), "name")
expect_equal(columns(select(df5, "table.name")), "name")

# Test that stats::alias is not masked
expect_is(alias(aov(yield ~ block + N*P*K, npk)), "listof")


expect_error(select(df, c("name", "age"), "name"),
"To select multiple columns, use a character vector or list for col")
})
Expand Down

0 comments on commit 5fe5495

Please sign in to comment.