aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/util/md5_test.go
blob: ac3bc6a954691a2db7d78e1a25905ce70558c8c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Vespa.ai. 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"))
}