feat: empty test for argparser; assertion helpers

This commit is contained in:
2024-01-21 10:55:21 +05:30
parent 2e7f59a069
commit 9f6e503379
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package assert
import "testing"
func Equal[T comparable](t *testing.T, got, want T) {
if (got != want) {
t.Errorf("not equal %v and %v", got, want)
}
}
func NotEqual[T comparable](t *testing.T, got, want T) {
if (got == want) {
t.Errorf("unexpected equal %v and %v", got, want)
}
}