diff --git a/list/list_test.go b/list/list_test.go index de275d8..bb3efcd 100644 --- a/list/list_test.go +++ b/list/list_test.go @@ -81,7 +81,7 @@ func TestStringifyIntList(t *testing.T) { myList := intListGen().Draw(t, "myList") s := myList.String() r := regexp.MustCompile(`^\([\d\s-]*\)$`) - assert.Equal(t, true, r.Match([]byte(s)), s+" looks like a stringified list") + assert.True(t, r.Match([]byte(s)), s+" looks like a stringified list") if !myList.IsEmpty() { assert.Equal(t, myList.Len(), strings.Count(s, " ")+1, "number of spaces in string should match count of elements") } else {