/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/cryptox/md5_test.go
23 строки
562 B
ᴊᴏᴇ ᴄʜᴇɴ
all: rename packages ending with "util" to end with "x" (#8182)
16 фев 2026, 21:25
Не верифицирован
16 фев 2026, 21:25
36d56d5
Код
Авторство
О чём код?
package cryptox import ( "testing" "github.com/stretchr/testify/assert" ) func TestMD5(t *testing.T) { tests := []struct { input string output string }{ {input: "", output: "d41d8cd98f00b204e9800998ecf8427e"}, {input: "The quick brown fox jumps over the lazy dog", output: "9e107d9d372bb6826bd81d3542a419d6"}, {input: "The quick brown fox jumps over the lazy dog.", output: "e4d909c290d0fb1ca068ffaddf22cbd0"}, } for _, test := range tests { t.Run(test.input, func(t *testing.T) { assert.Equal(t, test.output, MD5(test.input)) }) } }