@@ -9770,7 +9770,7 @@ test(1640.2, x[y, c(.SD, .(x.aa=x.aa)), on=c(aa="bb")], data.table(aa=3:5, cc=c(
97709770nq_fun = function(n=100L) {
97719771 i1 = sample(sample.int(n, 10L), n, TRUE)
97729772 i2 = sample.int(n, n, TRUE) - as.integer(n/2) # this used to be type numeric before #5517 which didn't seem intentional
9773- i3 = sample.int(2e6, n, TRUE) - as.integer(1e6) # used to sample from -1e6:1e6 which if allocated would be 8MB , #5517
9773+ i3 = sample.int(2e6, n, TRUE) - as.integer(1e6) # used to sample from -1e6:1e6 which if allocated would be 8MiB , #5517
97749774 i4 = sample(c(NA_integer_, sample.int(n*2L, 10L, FALSE)-n), n, TRUE)
97759775
97769776 d1 = sample(rnorm(10L), n, TRUE)
@@ -9861,7 +9861,7 @@ y = na.omit(dt2)
98619861
98629862if (.Machine$sizeof.pointer>4) {
98639863
9864- # temporarily off due to hitting 2GB limit on 32bit, #2767
9864+ # temporarily off due to hitting 2GiB limit on 32bit, #2767
98659865 # turn off temporarily using FALSE when using valgrind, too, as very slow
98669866
98679867 set.seed(1509611616L)
@@ -11964,7 +11964,7 @@ test(1800.2, fread("A\n1e55555555\n-1e+234056\n2e-59745"), data.table(A=c("1e555
1196411964#
1196511965# Tests thanks to Pasha copied verbatim from his PR#2200
1196611966#
11967- # Test files with "round" sizes (different multiples of 2, from 512B to 64KB )
11967+ # Test files with "round" sizes (different multiples of 2, from 512B to 64KiB )
1196811968for (mul in c(16, 128, 512, 1024, 2048)) {
1196911969 ff = file(f<-tempfile(), open="wb")
1197011970 cat(strrep("1234,5678,9012,3456,7890,abcd,4\x0A", mul), file=ff)
@@ -12943,7 +12943,7 @@ test(1903.2, fread(",A,B\n1,0,1\n2,0,1\n3,1,1\n", logical01=TRUE), data.table(V1
1294312943txt = 'A, B, C\n17, 34, 2.3\n3., NA, 1\nNA , 2, NA \n0,0.1,0'
1294412944test(1904.1, fread(txt, na.strings="NA", verbose=TRUE),
1294512945 ans <- data.table(A=c(17,3,NA,0), B=c(34,NA,2,0.1), C=c(2.3,1.0,NA,0.0)),
12946- output = c("Number of sampling jump points = 1 because.*Reading 1 chunks \\(0 swept\\) of 1.000MB \\(each chunk 4 rows\\) using 1 thread.*Rereading 0 columns"))
12946+ output = c("Number of sampling jump points = 1 because.*Reading 1 chunks \\(0 swept\\) of 1.000MiB \\(each chunk 4 rows\\) using 1 thread.*Rereading 0 columns"))
1294712947test(1904.2, fread(txt, na.strings=c("NA", " ")), ans, warning='na.strings\\[2\\]==" " consists only of whitespace, ignoring. Since strip.white=TRUE.*use.*"".*<NA>')
1294812948test(1904.3, fread(txt, na.strings=c("NA", "")), ans)
1294912949test(1904.4, fread(txt, na.strings=c("NA", "", " ")), ans, warning='na.strings\\[3\\]==" ".*only.*whitespace.*will already be read as <NA>')
@@ -17973,7 +17973,7 @@ DT = data.table(x = sample(letters[1:5], 20, TRUE),
1797317973 c = sample(c(0+3i,1,-1-1i,NA), 20, TRUE),
1797417974 l = sample(c(TRUE, FALSE, NA), 20, TRUE),
1797517975 r = as.raw(sample(1:5, 20, TRUE)))
17976- load(testDir("test2224.Rdata")) # 47KB array 24x8 where each cell contains a length-20 result
17976+ load(testDir("test2224.Rdata")) # 47KiB array 24x8 where each cell contains a length-20 result
1797717977if (test_bit64) {
1797817978 DT[, i64:=as.integer64(sample(c(-2L,0L,2L,NA), 20, TRUE))]
1797917979} else {
@@ -17984,7 +17984,7 @@ for (col in names(DT)[-1]) {
1798417984 for (n in list(1, 5, -1, -5, c(1,2), c(-1,1))) {
1798517985 for (type in c('lag','lead','shift','cyclic')) {
1798617986 # fill is tested by group in tests 2218.*; see comments in #5205
17987- # sapply(sapply()) changed to for(for(for())) to save 29MB , #5517
17987+ # sapply(sapply()) changed to for(for(for())) to save 29MiB , #5517
1798817988 test(2224.1+i/10000, # 192 tests here when test_bit64=TRUE; 168 when FALSE
1798917989 EVAL(sprintf("DT[, shift(%s, %d, type='%s'), by=x]$V1", col, n, type)),
1799017990 ans[[i]])
0 commit comments