You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
271 B

  1. package v2
  2. import "testing"
  3. // XXX: This makes assumptions about the message routing
  4. func TestReactor(t *testing.T) {
  5. reactor := Reactor{}
  6. reactor.Start()
  7. script := []Event{
  8. // TODO
  9. }
  10. for _, event := range script {
  11. reactor.Receive(event)
  12. }
  13. reactor.Wait()
  14. }