Codebase list golang-github-mitchellh-mapstructure / c9b585b
update test to not rely on fmt Mitchell Hashimoto 2 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 package mapstructure
11
22 import (
3 "fmt"
43 "reflect"
54 "testing"
65 "time"
618617 t.Fatal(err)
619618 }
620619
621 expect := "map[Username:Joe]"
622 if got := fmt.Sprintf("%+v", m); expect != got {
623 t.Fatalf("expect %q, got: %s", expect, got)
624 }
625 }
620 if len(m) != 1 {
621 t.Fatalf("fail: %#v", m)
622 }
623 if m["Username"] != "Joe" {
624 t.Fatalf("fail: %#v", m)
625 }
626 }