Skip to content

Commit c6211ae

Browse files
committed
test: updated test expectations to fit changed message
1 parent e3c1f92 commit c6211ae

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/testthat/test-arg-asIntegerDS.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# context("asIntegerDS::arg::direct input numeric")
2222
test_that("simple asIntegerDS non-input", {
23-
expect_error(asIntegerDS(1.0), "ERROR: x.name must be specified as a character string", fixed = TRUE)
23+
expect_error(asIntegerDS(1.0), "The input must be a single character string", fixed = TRUE)
2424
})
2525

2626
#

tests/testthat/test-arg-asLogicalDS.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121

2222
# context("asLogicalDS::arg::direct input numeric")
2323
test_that("simple asLogicalDS non-input", {
24-
expect_error(asLogicalDS(1.0), "ERROR: x.name must be specified as a character string", fixed = TRUE)
24+
expect_error(asLogicalDS(1.0), "The input must be a single character string", fixed = TRUE)
2525
})
2626

2727
# context("asLogicalDS::arg::input NULL")
2828
test_that("simple asLogicalDS NULL", {
2929
input <- NULL
3030

31-
expect_error(asLogicalDS("input"), "ERROR: for ds.asLogical function, x.name must specify an input object of class numeric, integer, character or matrix", fixed = TRUE)
31+
expect_error(asLogicalDS("input"), "The server-side object must be of type numeric, integer, character or matrix. 'input' is type NULL.", fixed = TRUE)
3232
})
3333

3434
# context("asLogicalDS::arg::input NA")
3535
test_that("simple asLogicalDS NA", {
3636
input <- NA
3737

38-
expect_error(asLogicalDS("input"), "ERROR: for ds.asLogical function, x.name must specify an input object of class numeric, integer, character or matrix", fixed = TRUE)
38+
expect_error(asLogicalDS("input"), "The server-side object must be of type numeric, integer, character or matrix. 'input' is type logical.", fixed = TRUE)
3939
})
4040

4141
#

0 commit comments

Comments
 (0)