core: increase test coverage for utils

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-04-19 11:24:09 +02:00
parent eb4ce6bda5
commit 5d326bd177
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package gobot
import (
"strings"
"testing"
"time"
@ -79,3 +80,8 @@ func TestRand(t *testing.T) {
t.Errorf("%v should not equal %v", a, b)
}
}
func TestDefaultName(t *testing.T) {
name := DefaultName("tester")
gobottest.Assert(t, strings.Contains(name, "tester"), true)
}