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
275 B

package v2
import "testing"
// XXX: This makes assumptions about the message routing
func TestReactor(t *testing.T) {
reactor := Reactor{}
reactor.Start()
script := Events{
testEvent{},
}
for _, event := range script {
reactor.Receive(event)
}
reactor.Wait()
}