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
parent
32a080f0f3
commit
13bf35d640
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue