From 8a5077b0ba144ac85dd04788d5a435df541b760c Mon Sep 17 00:00:00 2001 From: pooriaghaedi Date: Thu, 22 Feb 2024 13:30:17 +0300 Subject: [PATCH] add urldecode function (#1234) Signed-off-by: pooriaghaedi --- internal/lang/funcs/encoding_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/lang/funcs/encoding_test.go b/internal/lang/funcs/encoding_test.go index 7c526440fa5..6d379556c3b 100644 --- a/internal/lang/funcs/encoding_test.go +++ b/internal/lang/funcs/encoding_test.go @@ -265,8 +265,9 @@ func TestURLDecode(t *testing.T) { false, }, { - cty.StringVal("foo/bar"), cty.StringVal("foo%2Fbar"), + cty.StringVal("foo/bar"), + false, }, { @@ -364,7 +365,7 @@ func TestURLEncodeDecode(t *testing.T) { }, { cty.StringVal("foo%00, bar!"), - cty.StringVal("foo, bar!"), + cty.StringVal("foo%00, bar!"), false, }, }