summaryrefslogtreecommitdiffstats
path: root/client/go/util/md5_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/util/md5_test.go')
-rw-r--r--client/go/util/md5_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/go/util/md5_test.go b/client/go/util/md5_test.go
new file mode 100644
index 00000000000..6c9302e18cf
--- /dev/null
+++ b/client/go/util/md5_test.go
@@ -0,0 +1,13 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package util
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestMD5SimpleInputs(t *testing.T) {
+ assert.Equal(t, "d41d8cd98f00b204e9800998ecf8427e", Md5Hex(""))
+ assert.Equal(t, "4044e8209f286312a68bbb54f8714922", Md5Hex("admin/cluster-controllers/0\n"))
+}