From: Serge A. Zaitsev Date: Fri, 5 Dec 2014 17:05:46 +0000 (+0200) Subject: fixed eval func prototype in tests X-Git-Tag: 0.0.1~47 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e9e3299cf01f3a27dd60b7cc3a198852c16cdc31;p=aya.git fixed eval func prototype in tests --- diff --git a/zs_test.go b/zs_test.go index 0dbd68a..b18bfa2 100644 --- a/zs_test.go +++ b/zs_test.go @@ -49,8 +49,8 @@ this: is a content`) } func TestRender(t *testing.T) { - eval := func(a []string) ([]byte, error) { - return []byte("hello"), nil + eval := func(a []string, vars map[string]string) (string, error) { + return "hello", nil } vars := map[string]string{"foo": "bar"}