Revision 313c88f3e1fbf009d67d2e6578deb9b9fa4e4f08 authored by Guilherme Caulada on 18 October 2022, 01:11:59 UTC, committed by GitHub on 18 October 2022, 01:11:59 UTC
1 parent 7f5914f
Raw File
md5_test.go
package util

import "testing"

func TestMd5Sum(t *testing.T) {
	input := "don't hash passwords with md5"

	have, err := Md5SumString(input)
	if err != nil {
		t.Fatal("expected err to be nil")
	}

	want := "dd1f7fdb3466c0d09c2e839d1f1530f8"
	if have != want {
		t.Fatalf("expected: %s got: %s", want, have)
	}
}
back to top