Skip to content

Commit

Permalink
fix: map now is sorted
Browse files Browse the repository at this point in the history
Signed-off-by: nabil salah <[email protected]>
  • Loading branch information
Nabil-Salah committed Nov 5, 2024
1 parent 32239cc commit 4b08c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bencoder_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package bencoder

import (
"reflect"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -87,7 +88,9 @@ func TestDecoder(t *testing.T) {
if test.expectedError {
assert.Error(t, err)
}
assert.Equal(t, test.expected, got)
if ok := reflect.DeepEqual( test.expected, got); !ok {
t.Fail()
}
})
}
}
Expand Down

0 comments on commit 4b08c6a

Please sign in to comment.