forked from mirror/cast
Add bool case to ToStringE
This commit is contained in:
parent
6770a32f65
commit
ee7b3e0353
|
@ -40,6 +40,8 @@ func TestToString(t *testing.T) {
|
|||
assert.Equal(t, ToString(template.URL("http://somehost.foo")), "http://somehost.foo")
|
||||
assert.Equal(t, ToString(foo), "one more time")
|
||||
assert.Equal(t, ToString(nil), "")
|
||||
assert.Equal(t, ToString(true), "true")
|
||||
assert.Equal(t, ToString(false), "false")
|
||||
}
|
||||
|
||||
type foo struct {
|
||||
|
|
Loading…
Reference in New Issue