Skip to content

Commit f99b630

Browse files
committed
add coverage test case
1 parent 1e723ff commit f99b630

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13701,6 +13701,10 @@ test(1962.054, forder(DT, ), 3:1)
1370113701

1370213702
test(1962.055, fsort(as.double(DT$a), internal = TRUE),
1370313703
error = 'Internal code should not be being called on type double')
13704+
# coverage for fsort #7239
13705+
set.seed(1)
13706+
x = as.double(sample(0:(2^20), size = 1e6, replace = TRUE))
13707+
test(1962.055, sort(x), fsort(x))
1370413708

1370513709
l = as.list(DT)
1370613710
test(1962.056, setorder(l, a), error = 'x must be a data.frame or data.table')

0 commit comments

Comments
 (0)