Skip to content

Commit 92c722d

Browse files
committed
Add tests for splatting
1 parent db141d5 commit 92c722d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,12 @@ q = collect(@map(source_df, i->i.children))
491491
@test isa(q, Vector{Int})
492492
@test q==[3,5,2]
493493

494+
c = 3
495+
ex1 = :{a = 1, b = 2, nt1..., d = 5, c}
496+
ex1_replaced = Query.helper_namedtuples_replacement(ex1)
497+
nt1 = (w = 101, x = 102)
498+
@test eval(ex1_replaced) == (a = 1, b = 2, w = 101, x = 102, d = 5, c = 3)
499+
494500
include("test_dplyr-syntax.jl")
495501
include("test_pipesyntax.jl")
496502
include("test_macros.jl")

0 commit comments

Comments
 (0)