diff options
author | bep <[email protected]> | 2015-03-18 20:47:10 +0100 |
---|---|---|
committer | bep <[email protected]> | 2015-03-18 20:47:10 +0100 |
commit | a8bfaba081d6a31b6371e42e0448c9850d593d82 (patch) | |
tree | f249fe9c2f9c692b6e696bc8bd9749e90b9675c2 /tpl/template_test.go | |
parent | b15d0a168feb0f456bb1c9211c7d490cd7ca14b4 (diff) | |
download | hugo-a8bfaba081d6a31b6371e42e0448c9850d593d82.tar.gz hugo-a8bfaba081d6a31b6371e42e0448c9850d593d82.zip |
template: add some missing test cases for First
Diffstat (limited to 'tpl/template_test.go')
-rw-r--r-- | tpl/template_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/template_test.go b/tpl/template_test.go index 1197fa9bf..0c9a1ac91 100644 --- a/tpl/template_test.go +++ b/tpl/template_test.go @@ -231,6 +231,9 @@ func TestFirst(t *testing.T) { {"1", []int{100, 200, 300}, []int{100}}, {int64(-1), []int{100, 200, 300}, false}, {"noint", []int{100, 200, 300}, false}, + {1, nil, false}, + {nil, []int{100}, false}, + {1, t, false}, } { results, err := First(this.count, this.sequence) if b, ok := this.expect.(bool); ok && !b { |