Skip to content

Commit d93f98d

Browse files
committed
Fix tests for error messages
1 parent bce0c05 commit d93f98d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15061,7 +15061,7 @@ if (test_bit64) {
1506115061
as.i64 = bit64::as.integer64
1506215062
test(2039.01, between(1:10, as.i64(3), as.i64(6)), error="x is not integer64 but.*Please align classes")
1506315063
test(2039.02, between(1:10, 3, as.i64(6)), error="x is not integer64 but.*Please align classes")
15064-
test(2039.03, between(as.i64(1:3), "2", as.i64(4)), error="x is integer64 but lower and/or upper are not")
15064+
test(2039.03, between(as.i64(1:3), "2", as.i64(4)), error="x is integer64 but lower is not")
1506515065
old = options("datatable.verbose"=TRUE)
1506615066
x = as.i64(1:10)
1506715067
ans36 = c(FALSE,FALSE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE)
@@ -15091,7 +15091,7 @@ if (test_bit64) {
1509115091
# must not blindly read integer64 values as doubles when the latter fit into int32, #7164
1509215092
test(2039.22, between(42L, structure(41., class="integer64"), structure(43., class="integer64")), error="x is not integer64 but.*Please align classes")
1509315093
# must not blindly convert numeric bounds to integer64, #7164
15094-
test(2039.23, between(as.i64(42), -2^99, -2^98), error="x is integer64 but lower and/or upper are not")
15094+
test(2039.23, between(as.i64(42), 41, -2^98), error="x is integer64 but upper is not")
1509515095
options(old)
1509615096
}
1509715097

0 commit comments

Comments
 (0)