Skip to content

Commit 9649447

Browse files
Improved context descriptiveness
1 parent 17ed169 commit 9649447

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/testthat/test-smk-ds.glmPredict-gaussian.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ test_that("setup", {
2323
#
2424
# Tests
2525
#
26-
27-
context("ds.glmPredict::smk::gaussian")
26+
context("ds.glmPredict::smk::gaussian::without_newobj")
2827
test_that("simple glmPredict, gaussian, without newobj, se.fit=FALSE",{
2928
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="gaussian", newobj="gaussian.glmslma.obj")
3029

@@ -105,6 +104,7 @@ test_that("simple glmPredict, gaussian, without newobj, se.fit=FALSE",{
105104
expect_equal(res$sim3$safe.list$fit.quantiles[[7]], 6.054574, tolerance = 1e-7)
106105
})
107106

107+
context("ds.glmPredict::smk::gaussian::with_newobj")
108108
test_that("simple glmPredict, gaussian, with newobj, se.fit=FALSE", {
109109
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="gaussian", newobj="gaussian.glmslma.obj")
110110

@@ -185,6 +185,7 @@ test_that("simple glmPredict, gaussian, with newobj, se.fit=FALSE", {
185185
expect_equal(res$sim3$safe.list$fit.quantiles[[7]], 6.054574, tolerance = 1e-7)
186186
})
187187

188+
context("ds.glmPredict::smk::gaussian::sefit_true")
188189
test_that("simple glmPredict, gaussian, with newobj, se.fit=TRUE", {
189190
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="gaussian", newobj="gaussian.glmslma.obj")
190191

tests/testthat/test-smk-ds.glmPredict-poisson.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test_that("setup", {
2424
# Tests
2525
#
2626

27-
context("ds.glmPredict::smk::poisson")
27+
context("ds.glmPredict::smk::poisson::without_newobj")
2828
test_that("simple glmPredict, poisson, without newobj, se.fit=FALSE", {
2929
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="poisson", newobj="poisson.glmslma.obj")
3030

@@ -105,6 +105,7 @@ test_that("simple glmPredict, poisson, without newobj, se.fit=FALSE", {
105105
expect_equal(res$sim3$safe.list$fit.quantiles[[7]], 6.056664, tolerance = 1e-7)
106106
})
107107

108+
context("ds.glmPredict::smk::poisson::with_newobj")
108109
test_that("simple glmPredict, poisson, with newobj, se.fit=FALSE", {
109110
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="poisson", newobj="poisson.glmslma.obj")
110111

@@ -185,6 +186,7 @@ test_that("simple glmPredict, poisson, with newobj, se.fit=FALSE", {
185186
expect_equal(res$sim3$safe.list$fit.quantiles[[7]], 6.056664, tolerance = 1e-7)
186187
})
187188

189+
context("ds.glmPredict::smk::poisson::sefit_true")
188190
test_that("simple glmPredict, poisson, with newobj, se.fit=TRUE", {
189191
glmSLMA.res <- ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="poisson", newobj="poisson.glmslma.obj")
190192

0 commit comments

Comments
 (0)