Skip to content

Commit 3e9839c

Browse files
committed
Oops
1 parent 2145136 commit 3e9839c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/expect-comparison.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ expect_compare_ <- function(
3535
">=" = "not greater than"
3636
)[[operator]]
3737

38-
negated_op <- switch(operator, "<" = ">", "<=" = ">=", ">" = "<", ">=" = "<=")
38+
negated_op <- switch(operator, "<" = ">=", "<=" = ">", ">" = "<=", ">=" = "<")
3939

4040
cmp <- op(act$val, exp$val)
4141
if (length(cmp) != 1 || !is.logical(cmp)) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# useful output when numbers are very small
22

33
1.1 * x is not less than `x`.
4-
0.0000110 - 0.0000100 = 0.0000010 >= 0
4+
0.0000110 - 0.0000100 = 0.0000010 > 0
55

66
---
77

88
`x` is not strictly greater than 1.1 * x.
9-
0.0000100 - 0.0000110 = -0.0000010 < 0
9+
0.0000100 - 0.0000110 = -0.0000010 <= 0
1010

0 commit comments

Comments
 (0)