Run all the hasPrefix test-cases, even if one fails

This makes it easier to see what's gone wrong if they start failing.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
v0.8
Paul "TBBle" Hampson 2020-07-28 03:48:02 +10:00
parent 32a080f0f3
commit 13bf35d640
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package oci
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
)
func TestHasPrefix(t *testing.T) {
@ -51,6 +51,6 @@ func TestHasPrefix(t *testing.T) {
}
for i, tc := range testCases {
actual := hasPrefix(tc.path, tc.prefix)
require.Equal(t, tc.expected, actual, "#%d: under(%q,%q)", i, tc.path, tc.prefix)
assert.Equal(t, tc.expected, actual, "#%d: under(%q,%q)", i, tc.path, tc.prefix)
}
}