1
Fork 0

remove last assert

main
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent 479a144782
commit 26c03ed8d1
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,6 @@ package rootfs
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTree(t *testing.T) {
@ -99,7 +97,9 @@ func TestString(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tree := newTree(tt.paths...)
assert.Equal(t, tt.wantStr, tree.String())
if tt.wantStr != tree.String() {
t.Errorf("want != got: %q != %q", tt.wantStr, tree.String())
}
})
}
}