aboutsummaryrefslogtreecommitdiff
path: root/shared_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'shared_test.go')
-rw-r--r--shared_test.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/shared_test.go b/shared_test.go
index 2bc5bee..10402bc 100644
--- a/shared_test.go
+++ b/shared_test.go
@@ -146,14 +146,21 @@ func expectFloat64(t *testing.T, actual float64, expected float64) {
}
}
-func expectInt(t *testing.T, actual int, expected int) {
+func expectInt(t *testing.T, actual, expected int) {
t.Helper()
if actual != expected {
t.Errorf("expected value %d, got %d instead\n", expected, actual)
}
}
-func expectUint64(t *testing.T, actual uint64, expected uint64) {
+func expectInt64(t *testing.T, actual, expected int64) {
+ t.Helper()
+ if actual != expected {
+ t.Errorf("expected value %d, got %d instead\n", expected, actual)
+ }
+}
+
+func expectUint64(t *testing.T, actual, expected uint64) {
t.Helper()
if actual != expected {
t.Errorf("expected value %d, got %d instead\n", expected, actual)