From 0324724fb74d35e7f5276bab082f99f2bb4a0624 Mon Sep 17 00:00:00 2001 From: Adam Jeniski Date: Thu, 6 Nov 2025 11:15:15 -1000 Subject: [PATCH] assertTrue > assertEqual(true,...) --- list/list_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {