(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestInTransitionError(t *testing.T) { |
| 40 | event := "in transition" |
| 41 | e := InTransitionError{Event: event} |
| 42 | if e.Error() != "event "+e.Event+" inappropriate because previous transition did not complete" { |
| 43 | t.Error("InTransitionError string mismatch") |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | func TestNotInTransitionError(t *testing.T) { |
| 48 | e := NotInTransitionError{} |