mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-24 13:48:49 +08:00
15 lines
212 B
Go
15 lines
212 B
Go
package gobot
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestEventer(t *testing.T) {
|
|
e := NewEventer()
|
|
e.AddEvent("test")
|
|
|
|
if _, ok := e.Events()["test"]; !ok {
|
|
t.Errorf("Could not add event to list of Event names")
|
|
}
|
|
}
|