Add fail test - one parameter, non-numeric parameter

This commit is contained in:
Pradeep Bhadani 2017-05-18 14:30:10 +00:00
parent 47b1aaea3a
commit 2c39887706
1 changed files with 15 additions and 0 deletions

View File

@ -354,6 +354,21 @@ func TestInterpolateFuncPow(t *testing.T) {
"0",
false,
},
{
`${pow("invalid-input", 2)}`,
nil,
true,
},
{
`${pow(2, "invalid-input")}`,
nil,
true,
},
{
`${pow(2)}`,
nil,
true,
},
},
})
}