aboutsummaryrefslogtreecommitdiff
path: root/int_slice_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'int_slice_test.go')
-rw-r--r--int_slice_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/int_slice_test.go b/int_slice_test.go
index 13a6551..5f2eee6 100644
--- a/int_slice_test.go
+++ b/int_slice_test.go
@@ -87,7 +87,7 @@ func TestISDefault(t *testing.T) {
t.Fatalf("got error: %v", err)
}
if d != v {
- t.Fatalf("expected is[%d] to be %s but got: %s", i, d, v)
+ t.Fatalf("expected is[%d] to be %d but got: %d", i, d, v)
}
}
@@ -101,7 +101,7 @@ func TestISDefault(t *testing.T) {
t.Fatal("got an error from GetIntSlice():", err)
}
if d != v {
- t.Fatalf("expected is[%d] to be %s from GetIntSlice but got: %s", i, d, v)
+ t.Fatalf("expected is[%d] to be %d from GetIntSlice but got: %d", i, d, v)
}
}
}
@@ -122,7 +122,7 @@ func TestISWithDefault(t *testing.T) {
t.Fatalf("got error: %v", err)
}
if d != v {
- t.Fatalf("expected is[%d] to be %s but got: %s", i, d, v)
+ t.Fatalf("expected is[%d] to be %d but got: %d", i, d, v)
}
}
@@ -136,7 +136,7 @@ func TestISWithDefault(t *testing.T) {
t.Fatalf("got error: %v", err)
}
if d != v {
- t.Fatalf("expected is[%d] to be %s from GetIntSlice but got: %s", i, d, v)
+ t.Fatalf("expected is[%d] to be %d from GetIntSlice but got: %d", i, d, v)
}
}
}
@@ -156,7 +156,7 @@ func TestISCalledTwice(t *testing.T) {
}
for i, v := range is {
if expected[i] != v {
- t.Fatalf("expected is[%d] to be %s but got: %s", i, expected[i], v)
+ t.Fatalf("expected is[%d] to be %d but got: %d", i, expected[i], v)
}
}
}