Skip to content

Commit

Permalink
test: closes #218
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhebbali committed Nov 6, 2024
1 parent cf81103 commit 6370c4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/_snaps/bp-output.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# when fitted.values == TRUE, fitted values from the regression
are used for the test
# when fitted.values == TRUE, fitted vals from reg are used

Code
ols_test_breusch_pagan(model)
Expand Down
3 changes: 1 addition & 2 deletions tests/testthat/_snaps/score-output.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# when fitted.values == TRUE, fitted values from the regression
are used for the test
# when fitted.values == TRUE, fitted vals from the reg are used

Code
ols_test_score(model)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-bp-output.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_that("when fitted.values == TRUE, fitted values from the regression\n\tare used for the test", {
test_that("when fitted.values == TRUE, fitted vals from reg are used", {
model <- lm(mpg ~ disp + hp + wt + drat + qsec, data = mtcars)
expect_snapshot(ols_test_breusch_pagan(model))
expect_snapshot(ols_test_breusch_pagan(model, rhs = TRUE))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-score-output.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_that("when fitted.values == TRUE, fitted values from the regression\n\tare used for the test", {
test_that("when fitted.values == TRUE, fitted vals from the reg are used", {
model <- lm(mpg ~ disp + hp + wt + drat + qsec, data = mtcars)
expect_snapshot(ols_test_score(model))
expect_snapshot(ols_test_score(model, rhs = TRUE))
Expand Down

0 comments on commit 6370c4b

Please sign in to comment.