From 8dfe7249e015e1a03a911d441cab8c4bb0c7d4c9 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 10 Feb 2018 10:24:02 +0100 Subject: add tests for container iterator --- shared_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shared_test.go') diff --git a/shared_test.go b/shared_test.go index 04481d4..1e7130e 100644 --- a/shared_test.go +++ b/shared_test.go @@ -121,6 +121,13 @@ func expectFloat64(t *testing.T, actual float64, expected float64) { } } +func expectInt(t *testing.T, actual int, 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) { t.Helper() if actual != expected { @@ -180,3 +187,7 @@ func expectHeaders(t *testing.T, actual map[string]string, expected map[string]s } } } + +func expectSuccess(t *testing.T, actual error) (ok bool) { + return expectError(t, actual, "") +} -- cgit v1.2.3