Skip to content

Commit 04c9785

Browse files
committed
add two tests for summary method for fastLm
1 parent 84aee81 commit 04c9785

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-07-18 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/tinytest/test_fastLm.R: Add tests for summary
4+
15
2021-07-17 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Date, Version): Roll minor version

inst/tinytest/test_fastLm.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,9 @@ expect_equal(class(vec), "numeric")
6969
expect_equal(length(vec), 3L)
7070
vec <- predict(flm, newdata=NULL)
7171
expect_equal(vec, fitted(flm))
72+
73+
## also generate summary
74+
flmsum <- summary(flm)
75+
fitsum <- summary(fit)
76+
expect_equal(flmsum$coef, fitsum$coef)
77+
expect_equal(length(flmsum), 12)

0 commit comments

Comments
 (0)