Skip to content

Commit 5e01ab6

Browse files
authored
Merge pull request #360 from davraam/v6.3.1-dev
increase test coverage of uniqueDS
2 parents 9b301ce + b42faa9 commit 5e01ab6

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,5 @@ Options:
196196
default.nfilter.noise=0.25,
197197
default.nfilter.levels.density=0.33,
198198
default.nfilter.levels.max=40
199-
RoxygenNote: 7.3.1
199+
RoxygenNote: 7.3.2
200200
Encoding: UTF-8

tests/testthat/test-arg-uniqueDS.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ test_that("simple uniqueDS for NULL", {
2626
context("uniqueDS::arg::null value")
2727
test_that("simple uniqueDS for NULL", {
2828
input <- NULL
29-
3029
expect_error(uniqueDS("input"), "Variable can't be NULL", fixed = TRUE)
3130
})
3231

32+
context("uniqueDS::arg::not character value")
33+
test_that("simple uniqueDS for NULL", {
34+
input <- 17
35+
expect_error(uniqueDS("input"), "Variable's name isn't a single character vector", fixed = TRUE)
36+
})
37+
3338
context("uniqueDS::arg::missing value")
3439
test_that("simple uniqueDS for NULL", {
3540
expect_error(uniqueDS("input"), "object 'input' not found", fixed = TRUE)

0 commit comments

Comments
 (0)