(t *testing.T)
| 20 | ) |
| 21 | |
| 22 | func TestInvalidEventError(t *testing.T) { |
| 23 | event := "invalid event" |
| 24 | state := "state" |
| 25 | e := InvalidEventError{Event: event, State: state} |
| 26 | if e.Error() != "event "+e.Event+" inappropriate in current state "+e.State { |
| 27 | t.Error("InvalidEventError string mismatch") |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestUnknownEventError(t *testing.T) { |
| 32 | event := "invalid event" |