summaryrefslogtreecommitdiffstats
path: root/modules/base/tool_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/tool_test.go')
-rw-r--r--modules/base/tool_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go
index 04cd682907..dcaf2fcbb0 100644
--- a/modules/base/tool_test.go
+++ b/modules/base/tool_test.go
@@ -53,6 +53,13 @@ func TestEncodeSha1(t *testing.T) {
)
}
+func TestEncodeSha256(t *testing.T) {
+ assert.Equal(t,
+ "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2",
+ EncodeSha256("foobar"),
+ )
+}
+
func TestShortSha(t *testing.T) {
assert.Equal(t, "veryverylo", ShortSha("veryverylong"))
}