From e38d93ddeedf9035f1810cc35b51c586fa14f552 Mon Sep 17 00:00:00 2001 From: PacoDw <__pm@outlook.com> Date: Wed, 23 Oct 2019 14:14:05 -0500 Subject: [PATCH] feat: added test case for error slice to parse to string --- cast_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cast_test.go b/cast_test.go index d9a1479..a4576fb 100644 --- a/cast_test.go +++ b/cast_test.go @@ -6,6 +6,7 @@ package cast import ( + "errors" "fmt" "html/template" "testing" @@ -1051,6 +1052,7 @@ func TestToStringSliceE(t *testing.T) { {[]string{"a", "b"}, []string{"a", "b"}, false}, {[]interface{}{1, 3}, []string{"1", "3"}, false}, {interface{}(1), []string{"1"}, false}, + {[]error{errors.New("a"), errors.New("b")}, []string{"a", "b"}, false}, // errors {nil, nil, true}, {testing.T{}, nil, true},