2014-11-30 16:19:53 +08:00
|
|
|
package gobot
|
|
|
|
|
2016-02-22 13:21:24 +08:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
2014-11-30 16:19:53 +08:00
|
|
|
|
|
|
|
func TestEventer(t *testing.T) {
|
|
|
|
e := NewEventer()
|
|
|
|
e.AddEvent("test")
|
|
|
|
|
|
|
|
if _, ok := e.Events()["test"]; !ok {
|
2016-08-30 19:27:50 +08:00
|
|
|
t.Errorf("Could not add event to list of Event names")
|
2014-11-30 16:19:53 +08:00
|
|
|
}
|
|
|
|
}
|