From 92c722d7798c7e8bccf8908200595c29b04d61e9 Mon Sep 17 00:00:00 2001 From: "[Yijia Chen]" Date: Tue, 19 Mar 2019 10:49:07 -0700 Subject: [PATCH] Add tests for splatting --- test/runtests.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index f1750225..dc35b125 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -491,6 +491,12 @@ q = collect(@map(source_df, i->i.children)) @test isa(q, Vector{Int}) @test q==[3,5,2] +c = 3 +ex1 = :{a = 1, b = 2, nt1..., d = 5, c} +ex1_replaced = Query.helper_namedtuples_replacement(ex1) +nt1 = (w = 101, x = 102) +@test eval(ex1_replaced) == (a = 1, b = 2, w = 101, x = 102, d = 5, c = 3) + include("test_dplyr-syntax.jl") include("test_pipesyntax.jl") include("test_macros.jl")