From 2c3988770663d0874980fb2517c7d0dc8eb796a9 Mon Sep 17 00:00:00 2001 From: Pradeep Bhadani Date: Thu, 18 May 2017 14:30:10 +0000 Subject: [PATCH] Add fail test - one parameter, non-numeric parameter --- config/interpolate_funcs_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/interpolate_funcs_test.go b/config/interpolate_funcs_test.go index 865936ab7..fe68f38c4 100644 --- a/config/interpolate_funcs_test.go +++ b/config/interpolate_funcs_test.go @@ -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, + }, }, }) }