aboutsummaryrefslogtreecommitdiff
path: root/int_slice_test.go
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2015-06-22 15:27:45 -0400
committerEric Paris <[email protected]>2015-06-22 15:27:45 -0400
commit4c933e942b83d502d85c860bc8e4e924db3d3c34 (patch)
tree7da470cb712745a05c66b4cc444f120f19c6cbaf /int_slice_test.go
parent6dc14aaf8d96f367a07b4ce939aad8506532c2ee (diff)
Tests for GetIntSlice and GetStringSlice
Diffstat (limited to 'int_slice_test.go')
-rw-r--r--int_slice_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/int_slice_test.go b/int_slice_test.go
index fed4782..d162e86 100644
--- a/int_slice_test.go
+++ b/int_slice_test.go
@@ -36,4 +36,14 @@ func TestIS(t *testing.T) {
t.Fatalf("expected is[%d] to be %s but got: %d", i, vals[i], v)
}
}
+ getIS, err := f.GetIntSlice("is")
+ for i, v := range getIS {
+ d, err := strconv.Atoi(vals[i])
+ if err != nil {
+ t.Fatalf("got error: %v", err)
+ }
+ if d != v {
+ t.Fatalf("expected is[%d] to be %s but got: %d from GetIntSlice", i, vals[i], v)
+ }
+ }
}