mirror of
https://github.com/emersion/go-msgauth
synced 2026-07-05 04:49:19 +00:00
15 lines
274 B
Go
15 lines
274 B
Go
package msgauth
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFormat(t *testing.T) {
|
|
for _, test := range msgauthTests {
|
|
v := Format(test.identifier, test.results)
|
|
if v != test.value {
|
|
t.Errorf("Expected formatted header field to be \n%v\n but got \n%v", test.value, v)
|
|
}
|
|
}
|
|
}
|