Skip to content

Commit

Permalink
Add more tests for the curve creation
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Dec 18, 2024
1 parent b38e35f commit 28d4403
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/testthat/test_internals.R
Original file line number Diff line number Diff line change
Expand Up @@ -445,4 +445,31 @@ test_that("Test internals", {
TOLDELAY = 0,
TOLON = 0,
TOLOFF = 0), type = "double")

## case for a delayed hit ramp start
expect_type(
Luminescence:::src_create_RLumDataCurve_matrix(
DATA = 1:100,
VERSION = 4,
NPOINTS = 0,
LTYPE = "OSL",
LOW = 0,
HIGH = 500,
AN_TEMP = 0,
TOLDELAY = 10,
TOLON = 0,
TOLOFF = 0), type = "double")
## case for a delayed hit ramp start
expect_type(
Luminescence:::src_create_RLumDataCurve_matrix(
DATA = 1:100,
VERSION = 4,
NPOINTS = 0,
LTYPE = "OSL",
LOW = 0,
HIGH = 500,
AN_TEMP = 100,
TOLDELAY = 0,
TOLON = 0,
TOLOFF = 0), type = "double")
})

0 comments on commit 28d4403

Please sign in to comment.