(t *testing.T)
| 190 | } |
| 191 | |
| 192 | func TestSqlValuer(t *testing.T) { |
| 193 | id, _ := Parse(maxStringEncoded) |
| 194 | |
| 195 | if v, err := id.Value(); err != nil { |
| 196 | t.Error(err) |
| 197 | } else if s, ok := v.(string); !ok { |
| 198 | t.Error("not a string value") |
| 199 | } else if s != maxStringEncoded { |
| 200 | t.Error("bad string value::", s) |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | func TestSqlValuerNilValue(t *testing.T) { |
| 205 | if v, err := Nil.Value(); err != nil { |