(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestUnknownEventError(t *testing.T) { |
| 32 | event := "invalid event" |
| 33 | e := UnknownEventError{Event: event} |
| 34 | if e.Error() != "event "+e.Event+" does not exist" { |
| 35 | t.Error("UnknownEventError string mismatch") |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func TestInTransitionError(t *testing.T) { |
| 40 | event := "in transition" |