changeset 1:d647affd8ae9 draft

fixed eval func prototype in tests
author zaitsev.serge
date Fri, 05 Dec 2014 17:05:46 +0000
parents 45a9e1fac18e
children fd79b3a90bef
files zs_test.go
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zs_test.go	Fri Dec 05 16:59:56 2014 +0000
+++ b/zs_test.go	Fri Dec 05 17:05:46 2014 +0000
@@ -49,8 +49,8 @@
 }
 
 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"}