Skip to content

Commit bebc49e

Browse files
committed
use parity tests
1 parent c646d54 commit bebc49e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

inst/tests/tests.Rraw

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21351,15 +21351,15 @@ local({
2135121351

2135221352
# 5885 implement frev
2135321353
d = c(NA, NaN, Inf, -Inf)
21354-
test(2327.00, frev(c(FALSE, NA)), c(NA, FALSE))
21355-
test(2327.01, frev(c(0L, NA)), c(NA, 0L))
21356-
test(2327.02, frev(d), c(-Inf, Inf, NaN, NA))
21357-
test(2327.03, frev(c(NA, 1, 0+2i)), c(0+2i, 1, NA))
21358-
test(2327.04, frev(as.raw(0:1)), as.raw(1:0))
21359-
test(2327.05, frev(NULL), NULL)
21360-
test(2327.06, frev(character(5)), character(5))
21361-
test(2327.07, frev(integer(0)), integer(0))
21362-
test(2327.08, frev(list(1, "a")), list("a", 1))
21354+
test(2327.00, frev(c(FALSE, NA)), rev(c(FALSE, NA)))
21355+
test(2327.01, frev(c(0L, NA)), rev(c(0L, NA)))
21356+
test(2327.02, frev(d), rev(d))
21357+
test(2327.03, frev(c(NA, 1, 0+2i)), rev(c(NA, 1, 0+2i)))
21358+
test(2327.04, frev(as.raw(0:1)), rev(as.raw(0:1)))
21359+
test(2327.05, frev(NULL), rev(NULL))
21360+
test(2327.06, frev(character(5)), rev(character(5)))
21361+
test(2327.07, frev(integer(0)), rev(integer(0)))
21362+
test(2327.08, frev(list(1, "a")), rev(list(1, "a")))
2136321363
test(2327.09, setrev(c(0L, NA)), c(NA, 0L))
2136421364
test(2327.10, setrev(d), c(-Inf, Inf, NaN, NA))
2136521365
test(2327.11, setrev(c(NA, 1, 0+2i)), c(0+2i, 1, NA))
@@ -21403,3 +21403,4 @@ if (test_bit64) {
2140321403
test(2327.71, frev(x), rev(x))
2140421404
test(2327.72, setrev(x), x)
2140521405
}
21406+

0 commit comments

Comments
 (0)