aboutsummaryrefslogtreecommitdiff
path: root/string_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 /string_slice_test.go
parent6dc14aaf8d96f367a07b4ce939aad8506532c2ee (diff)
Tests for GetIntSlice and GetStringSlice
Diffstat (limited to 'string_slice_test.go')
-rw-r--r--string_slice_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/string_slice_test.go b/string_slice_test.go
index 019afee..c37a91a 100644
--- a/string_slice_test.go
+++ b/string_slice_test.go
@@ -31,4 +31,14 @@ func TestSS(t *testing.T) {
t.Fatal("expected ss[%d] to be %s but got: %s", i, vals[i], v)
}
}
+
+ getSS, err := f.GetStringSlice("ss")
+ if err != nil {
+ t.Fatal("got an error from GetStringSlice(): %v", err)
+ }
+ for i, v := range getSS {
+ if vals[i] != v {
+ t.Fatal("expected ss[%d] to be %s from GetStringSlice but got: %s", i, vals[i], v)
+ }
+ }
}