Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Increasing test coverage for funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-stitt committed Dec 1, 2017
1 parent 7502528 commit 09f6507
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion interpolation/lists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestInterpoloationFuncConcat(t *testing.T) {
{
description: "Two lists combine",
text: `${concat(foo, bar)}`,
expectation: []interface{}{"test1", "test3", "test2"},
expectation: []interface{}{"test1", "test3", "test2", []interface{}{"test4"}, map[string]interface{}{"test5": "test6"}},
vars: map[string]ast.Variable{
"foo": ast.Variable{
Type: ast.TypeList,
Expand All @@ -61,6 +61,24 @@ func TestInterpoloationFuncConcat(t *testing.T) {
Type: ast.TypeString,
Value: "test2",
},
{
Type: ast.TypeList,
Value: []ast.Variable{
{
Type: ast.TypeString,
Value: "test4",
},
},
},
{
Type: ast.TypeMap,
Value: map[string]ast.Variable{
"test5": ast.Variable{
Type: ast.TypeString,
Value: "test6",
},
},
},
},
},
},
Expand Down

0 comments on commit 09f6507

Please # to comment.