-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace testify with stdlib in tests #21
Conversation
Looks like we only minimally depended on testify, so we might as well use stdlib. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
defaults_windows_test.go
Outdated
@@ -323,7 +328,9 @@ func TestMatchComparerMatch_LCOW(t *testing.T) { | |||
match: true, | |||
}, | |||
} { | |||
assert.Equal(t, test.match, m.Match(test.platform), "should match %b, %s to %s", test.match, m.Platform, test.platform) | |||
if actual := m.Match(test.platform); actual != test.match { | |||
t.Errorf("should match %b, %s to %s", test.match, m.Platform, test.platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7472697
to
86a86b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE!
Heh, yeah, found this stashed locally, so thought I'd push it, but I'm not really attached to it if others still find it useful to have the assert available (testify is still in the dependency tree otherwise, but it may save a bit on maintenance not having to keep it up-to-date) |
+25 −15 Maybe it's not popular, but I am a fan of testify rather than having to repeat the |
Looks like we only minimally depended on testify, so we might as well use stdlib.