diff options
author | Daniel Nephin <dnephin@docker.com> | 2018-03-13 15:28:34 -0400 |
---|---|---|
committer | Daniel Nephin <dnephin@docker.com> | 2018-03-16 11:03:43 -0400 |
commit | 6be0f709830113966f295401327b027ec2f0bbca (patch) | |
tree | c1430a38be5fac52d9c3b9e06b15e7db59025da5 /opts | |
parent | ef01dea8935932486f03a37069720987e805dce6 (diff) | |
download | docker-6be0f709830113966f295401327b027ec2f0bbca.tar.gz |
Automated migration using
gty-migrate-from-testify --ignore-build-tags
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Diffstat (limited to 'opts')
-rw-r--r-- | opts/quotedstring_test.go | 17 |
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())) } |