@@ -335,17 +335,17 @@ with_test_authentication({
335335
336336 expect_json_equivalent(transforms(ds $ v4 ), trans_resp )
337337
338- # TODO: FIX for kwargs
339- # expect_prints(subtotals(ds$v4),
340- # get_output(data.frame(
341- # anchor = c("top ", 1, 2 , "bottom "),
342- # name = c("This is a subtitle" , "B alone ", "C alone ", "B+C "),
343- # func = c(NA , "subtotal ", "subtotal ", "subtotal "),
344- # args = c("NA ", "1 ", "2 ", "1 and 2"),
345- # stringsAsFactors = FALSE
346- # )),
347- # fixed = TRUE
348- # )
338+ expect_prints(subtotals( ds $ v4 ),
339+ get_output( data.frame (
340+ anchor = c( " top " , 1 , 2 , " bottom " ),
341+ name = c(" This is a subtitle " , " B alone " , " C alone " , " B+C " ),
342+ func = c(NA , " subtotal " , " subtotal " , " subtotal " ),
343+ args = c(" NA " , " 1 " , " 2 " , " 1 and 2 " ),
344+ kwargs = c(" " , " positive: 1 | " , " positive: 2 | " , " positive: 1 and 2 | " ),
345+ stringsAsFactors = FALSE
346+ )),
347+ fixed = TRUE
348+ )
349349
350350 # check shape
351351 v4_ary <- array (c(NA , 10 , 10 , 10 , 10 , 20 ),
0 commit comments