mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
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
Block a user