Skip to content

Commit bbba929

Browse files
test #ing
1 parent 02e5ecc commit bbba929

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

inst/tests/tests.Rraw

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21239,10 +21239,10 @@ test(2321.5, DT <- data.table(a=1:2, cbind(b=3:4)), data.table(a=1:2, b=3:4))
2123921239
test(2321.6, names(DT), names(data.frame(a=1:2, cbind(b=3:4))))
2124021240

2124121241
# New fctr() helper: like factor() but retaining order by default #4837
21242-
test(2240.01, levels(fctr(c("b","a","c"))), c("b","a","c"))
21243-
test(2240.02, levels(fctr(c(3,1,2))), c("3","1","2"))
21244-
test(2240.11, levels(fctr(c("b","a","c"), rev=TRUE)), c("c","a","b"))
21245-
test(2240.12, levels(fctr(c("b","a","c"), rev=NA)), error="TRUE or FALSE")
21246-
test(2240.21, levels(fctr(c("b","a","c"), sort=TRUE)), c("a","b","c"))
21247-
test(2240.22, levels(fctr(c("b","a","c"), sort=NA)), error="TRUE or FALSE")
21248-
test(2240.31, levels(fctr(c("b","a","c"), rev=TRUE, sort=TRUE)), c("c","b","a"))
21242+
test(2322.01, levels(fctr(c("b","a","c"))), c("b","a","c"))
21243+
test(2322.02, levels(fctr(c(3,1,2))), c("3","1","2"))
21244+
test(2322.11, levels(fctr(c("b","a","c"), rev=TRUE)), c("c","a","b"))
21245+
test(2322.12, levels(fctr(c("b","a","c"), rev=NA)), error="TRUE or FALSE")
21246+
test(2322.21, levels(fctr(c("b","a","c"), sort=TRUE)), c("a","b","c"))
21247+
test(2322.22, levels(fctr(c("b","a","c"), sort=NA)), error="TRUE or FALSE")
21248+
test(2322.31, levels(fctr(c("b","a","c"), rev=TRUE, sort=TRUE)), c("c","b","a"))

0 commit comments

Comments
 (0)