From 96275ee66a13c01ba0e17a40b33685635fdd3aea Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Sun, 25 Oct 2015 18:55:21 +0000 Subject: [PATCH] Add an explicit test for PR #2973 --- config/interpolate_funcs_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/interpolate_funcs_test.go b/config/interpolate_funcs_test.go index 7b7311fd4f..bbfdd484ad 100644 --- a/config/interpolate_funcs_test.go +++ b/config/interpolate_funcs_test.go @@ -506,6 +506,12 @@ func TestInterpolateFuncLength(t *testing.T) { "5", false, }, + // Want length 0 if we split an empty string then compact + { + `${length(compact(split(",", "")))}`, + "0", + false, + }, }, }) }