(t *testing.T)
| 274 | } |
| 275 | |
| 276 | func TestParseVersionWithEmbeddedSpaces(t *testing.T) { |
| 277 | if _, err := Parse("0:0 0-1"); err == nil { |
| 278 | t.Errorf("Expected an error, but %q was parsed without an error", "0:0 0-1") |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | func TestParseVersionWithNegativeEpoch(t *testing.T) { |
| 283 | if _, err := Parse("-1:0-1"); err == nil { |