aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2016-08-20 11:41:56 -0400
committerGitHub <[email protected]>2016-08-20 11:41:56 -0400
commit103ce5cd2042f2fe629c1957abb64ab3e7f50235 (patch)
tree908f5315b68abbed0170c5c1fde821a3a7aabdc2
parent6454a84b6da0ea8b628d5d8a26759f62c6c161b4 (diff)
parentb38ddae17129b3c437006f13d3cfef7b31b0fd87 (diff)
Merge pull request #88 from bogem/fixes
Some minor fixes
-rw-r--r--bool_test.go4
-rw-r--r--int_slice_test.go3
2 files changed, 5 insertions, 2 deletions
diff --git a/bool_test.go b/bool_test.go
index afd25ae..3e38a0f 100644
--- a/bool_test.go
+++ b/bool_test.go
@@ -172,9 +172,9 @@ func TestBoolP(t *testing.T) {
t.Error("expected no error, got ", err)
}
if *b != true {
- t.Errorf("expected b=true got b=%s", b)
+ t.Errorf("expected b=true got b=%v", *b)
}
if *c != false {
- t.Errorf("expect c=false got c=%s", c)
+ t.Errorf("expect c=false got c=%v", *c)
}
}
diff --git a/int_slice_test.go b/int_slice_test.go
index 5f2eee6..745aecb 100644
--- a/int_slice_test.go
+++ b/int_slice_test.go
@@ -60,6 +60,9 @@ func TestIS(t *testing.T) {
}
}
getIS, err := f.GetIntSlice("is")
+ if err != nil {
+ t.Fatalf("got error: %v", err)
+ }
for i, v := range getIS {
d, err := strconv.Atoi(vals[i])
if err != nil {