(t *testing.T)
| 52 | })`) |
| 53 | |
| 54 | func TestBool(t *testing.T) { |
| 55 | e := true |
| 56 | o := dummys.Get("someBool") |
| 57 | if v := o.Bool(); v != e { |
| 58 | t.Errorf("expected %#v, got %#v", e, v) |
| 59 | } |
| 60 | if i := o.Interface().(bool); i != e { |
| 61 | t.Errorf("expected %#v, got %#v", e, i) |
| 62 | } |
| 63 | if dummys.Set("otherBool", e); dummys.Get("otherBool").Bool() != e { |
| 64 | t.Fail() |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func TestStr(t *testing.T) { |
| 69 | e := "abc\u1234" |