Skip to content

Commit 2d873b1

Browse files
committed
minor formatting changes
1 parent e9e99d4 commit 2d873b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21879,9 +21879,9 @@ test(2348.1, tryCatch(DT[a == as.Date("20100101")], error=conditionCall)[[1L]],
2187921879
test(2348.2, tryCatch(DT[a == as.Date("20100101") | b == 2L], error=conditionCall)[[1L]], quote(charToDate))
2188021880

2188121881
# j expressions that modify a data.table by reference, (#6768)
21882-
inner=function(dt){dt[,b:=4:6]}
21883-
outer=function(dt){inner(dt); return(7:9)}
21884-
foo=function(dt){dt[,b:=4:6];return(7:9)}
21882+
inner = function(dt) dt[,b:=4:6]
21883+
outer = function(dt) { inner(dt); return(7:9) }
21884+
foo = function(dt) { dt[,b:=4:6]; return(7:9) }
2188521885
DT = data.table(a=1:3)
2188621886
test(2349, DT[,c:=outer(DT)], data.table(a=1:3, b=4:6, c=7:9))
2188721887
test(2349.1, DT[,c:=foo(DT)], data.table(a=1:3, b=4:6, c=7:9))

0 commit comments

Comments
 (0)