We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416f54b commit 456269aCopy full SHA for 456269a
1 file changed
tests/testthat/test-cat_domain.R
@@ -0,0 +1,21 @@
1
+library(testthat)
2
+
3
+context("categorical domain tests")
4
5
+describe("infeasible", {
6
+ it("detects infeasible rules with domain set", {
7
+ v <- validator( a %in% c("a1", "a2"),
8
+ a == "a1",
9
+ a == "a2"
10
+ )
11
+ expect_true(is_infeasible(v))
12
+ })
13
14
+ it("detects infeasible rules no domain set", {
15
+ v <- validator( a == "a1",
16
17
18
19
20
21
+})
0 commit comments