mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Check returned error in Scratch-test
This commit is contained in:
@@ -66,6 +66,8 @@ func TestScratchAddSlice(t *testing.T) {
|
|||||||
|
|
||||||
_, err = scratch.Add("intSlice", []int{4, 5})
|
_, err = scratch.Add("intSlice", []int{4, 5})
|
||||||
|
|
||||||
|
assert.Nil(t, err)
|
||||||
|
|
||||||
sl = scratch.Get("intSlice")
|
sl = scratch.Get("intSlice")
|
||||||
expected = []int{1, 2, 3, 4, 5}
|
expected = []int{1, 2, 3, 4, 5}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user