diff zs_test.go @ 19:802b96e67bae draft

added global variables, added default date for markdown
author zaitsev.serge
date Sat, 29 Aug 2015 17:54:55 +0000
parents ae3116ea938b
children 40f55059fbfa
line wrap: on
line diff
--- a/zs_test.go	Sat Aug 29 16:46:05 2015 +0000
+++ b/zs_test.go	Sat Aug 29 17:54:55 2015 +0000
@@ -46,7 +46,7 @@
 	empty:
 	bayan: [:|||:]
 
-this: is a content`))
+this: is a content`), Vars{})
 	if v["title"] != "Hello, world!" {
 		t.Error()
 	}
@@ -64,14 +64,14 @@
 	}
 
 	// Test empty md
-	v, body, _ = md(tmpfile("foo.md", ""))
-	if len(v) != 0 || len(body) != 0 {
+	v, body, _ = md(tmpfile("foo.md", ""), Vars{})
+	if v["url"] != "foo.html" || len(body) != 0 {
 		t.Error(v, body)
 	}
 
 	// Test empty header
-	v, body, _ = md(tmpfile("foo.md", "Hello"))
-	if len(v) != 0 || body != "Hello" {
+	v, body, _ = md(tmpfile("foo.md", "Hello"), Vars{})
+	if v["url"] != "foo.html" || body != "Hello" {
 		t.Error(v, body)
 	}
 }