aboutsummaryrefslogtreecommitdiff
path: root/shared_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-17 18:07:39 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-17 18:12:16 +0100
commit725ffa66897cf2d8943e4fcedc354abea4899324 (patch)
tree1ae98ab1511f2965bf6d488e46af28269a7af9be /shared_test.go
parentc445dcf3b6062a99a135036d60ac5b055cee9d2b (diff)
downloadgo-schwift-725ffa66897cf2d8943e4fcedc354abea4899324.tar.gz
add test for FieldHTTPTimeReadonly
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)