diff --git a/utils_test.go b/utils_test.go index 814c8fa9..89812000 100644 --- a/utils_test.go +++ b/utils_test.go @@ -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) +}