Skip to content

Commit

Permalink
add urldecode function (opentofu#1234)
Browse files Browse the repository at this point in the history
Signed-off-by: pooriaghaedi <[email protected]>
  • Loading branch information
pooriaghaedi committed Feb 22, 2024
1 parent a3fc024 commit 8a5077b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/lang/funcs/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ func TestURLDecode(t *testing.T) {
false,
},
{
cty.StringVal("foo/bar"),
cty.StringVal("foo%2Fbar"),
cty.StringVal("foo/bar"),

false,
},
{
Expand Down Expand Up @@ -364,7 +365,7 @@ func TestURLEncodeDecode(t *testing.T) {
},
{
cty.StringVal("foo%00, bar!"),
cty.StringVal("foo, bar!"),
cty.StringVal("foo%00, bar!"),
false,
},
}
Expand Down

0 comments on commit 8a5077b

Please sign in to comment.