Skip to content

Commit d5c6650

Browse files
committed
changes for new release
1 parent e93e402 commit d5c6650

File tree

5 files changed

+2
-13
lines changed

5 files changed

+2
-13
lines changed

tests/testthat/test-as-parsed-model.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("parsed model")
2-
31
test_that("Simple linear regression matches lm()", {
42
expect_is(
53
as_parsed_model(

tests/testthat/test_dummy_var.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("add_dummy_variables")
2-
31
test_that("Function create the correct columns", {
42
cols_expected <- c("mpg", "disp", "hp", "drat", "wt", "qsec", "vs", "am", "gear", "carb", "cyl_6", "cyl_8")
53
expect_equal(

tests/testthat/test_kmeans.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("kmeans")
2-
31
test_that("Specifying variables works", {
42
expect_is(
53
simple_kmeans_db(mtcars, wt, mpg),

tests/testthat/test_kmeans_viz.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
context("kmeans_viz")
2-
31

42
test_that("plot_kmeans() returns a ggplot2 object", {
5-
expect_equal(
6-
class(plot_kmeans(mtcars, mpg, wt, group = am)),
7-
c("gg", "ggplot")
3+
expect_true(
4+
inherits(plot_kmeans(mtcars, mpg, wt, group = am), "ggplot")
85
)
96
})
107

tests/testthat/test_lr.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("Linear Regression")
2-
31
test_that("Simple linear regression matches lm()", {
42
expect_equal(
53
lm(wt ~ mpg, data = mtcars) %>%

0 commit comments

Comments
 (0)