From: Guilherme Puida Moreira Date: Sun, 10 Mar 2024 00:37:05 -0300 Subject: Fix logic error in failing test case Forwarded: https://github.com/tscholl2/siec/pull/3 The test compares `gotQ` with `expectedT` and `gotT` with `expectedQ`, which is not correct. --- search/search_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/search_test.go b/search/search_test.go index d1fd970..c34087a 100644 --- a/search/search_test.go +++ b/search/search_test.go @@ -34,7 +34,7 @@ func Test_nextSiec(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - gotT, gotQ := nextSiec(tt.args.M) + gotQ, gotT := nextSiec(tt.args.M) if !reflect.DeepEqual(gotT, tt.wantT) { t.Errorf("nextSiec() gotT = %v, want %v", gotT, tt.wantT) }