Add fail test - one parameter, non-numeric parameter
This commit is contained in:
parent
47b1aaea3a
commit
2c39887706
|
@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue