This commit is contained in:
Kevin Atkinson
2018-08-31 15:01:41 -04:00
parent b46f1c99f0
commit ecd5d58562

View File

@@ -7,13 +7,13 @@ import (
)
func TestMap(t *testing.T) {
for s,e := range Encodings {
for s, e := range Encodings {
s2 := EncodingToStr[e]
if s != s2 {
t.Errorf("round trip failed on encoding map: %s != %s", s, s2)
}
}
for e,s := range EncodingToStr {
for e, s := range EncodingToStr {
e2 := Encodings[s]
if e != e2 {
t.Errorf("round trip failed on encoding map: '%c' != '%c'", e, e2)