summaryrefslogtreecommitdiff
path: root/opts
diff options
context:
space:
mode:
Diffstat (limited to 'opts')
-rw-r--r--opts/quotedstring_test.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/opts/quotedstring_test.go b/opts/quotedstring_test.go
index e24257a5d4..21e6e4c85a 100644
--- a/opts/quotedstring_test.go
+++ b/opts/quotedstring_test.go
@@ -3,27 +3,28 @@ package opts // import "github.com/docker/docker/opts"
import (
"testing"
- "github.com/stretchr/testify/assert"
+ "github.com/gotestyourself/gotestyourself/assert"
+ is "github.com/gotestyourself/gotestyourself/assert/cmp"
)
func TestQuotedStringSetWithQuotes(t *testing.T) {
value := ""
qs := NewQuotedString(&value)
- assert.NoError(t, qs.Set(`"something"`))
- assert.Equal(t, "something", qs.String())
- assert.Equal(t, "something", value)
+ assert.Check(t, qs.Set(`"something"`))
+ assert.Check(t, is.Equal("something", qs.String()))
+ assert.Check(t, is.Equal("something", value))
}
func TestQuotedStringSetWithMismatchedQuotes(t *testing.T) {
value := ""
qs := NewQuotedString(&value)
- assert.NoError(t, qs.Set(`"something'`))
- assert.Equal(t, `"something'`, qs.String())
+ assert.Check(t, qs.Set(`"something'`))
+ assert.Check(t, is.Equal(`"something'`, qs.String()))
}
func TestQuotedStringSetWithNoQuotes(t *testing.T) {
value := ""
qs := NewQuotedString(&value)
- assert.NoError(t, qs.Set("something"))
- assert.Equal(t, "something", qs.String())
+ assert.Check(t, qs.Set("something"))
+ assert.Check(t, is.Equal("something", qs.String()))
}