Skip to content

Commit

Permalink
add sha1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkordish committed Dec 27, 2015
1 parent 2920a4a commit 4b6cda9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/interpolate_funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,18 @@ func TestInterpolateFuncUpper(t *testing.T) {
})
}

func TestInterpolateFuncSha1(t *testing.T) {
testFunction(t, testFunctionConfig{
Cases: []testFunctionCase{
{
`${sha1("test")}`,
"a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
false,
},
},
})
}

type testFunctionConfig struct {
Cases []testFunctionCase
Vars map[string]ast.Variable
Expand Down

0 comments on commit 4b6cda9

Please sign in to comment.