aboutsummaryrefslogtreecommitdiff
path: root/lib/test/test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-10 20:49:02 +0700
committerShulhan <ms@kilabit.info>2018-05-10 20:49:02 +0700
commit488e6c32348fb84636dd69d46c151fffcfe7ee37 (patch)
tree928837e7a53baf3f85a4f5060cafacedc6b9062e /lib/test/test.go
parente6ef580dc8134019cffa94810907b81cb5caa19a (diff)
downloadpakakeh.go-488e6c32348fb84636dd69d46c151fffcfe7ee37.tar.xz
Refactor parser using bytes.Reader
Previous benchmark result (22dcd07 Move buffer to reader), BenchmarkParse-2 500 19534400 ns/op 4656335 B/op 81163 allocs/op New benchmark result, BenchmarkParse-2 20000 71120 ns/op 35368 B/op 549 allocs/op
Diffstat (limited to 'lib/test/test.go')
-rw-r--r--lib/test/test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/test/test.go b/lib/test/test.go
index 0a71e34d..a937f3a9 100644
--- a/lib/test/test.go
+++ b/lib/test/test.go
@@ -53,9 +53,10 @@ func Assert(t *testing.T, name string, exp, got interface{}, equal bool) {
printStackTrace(t)
- t.Fatalf("\n"+
- ">>> Expecting %s '%+v'\n"+
- " got '%+v'\n", name, exp, got)
+ t.Fatalf(">>> Expecting %s,\n"+
+ "'%+v'\n"+
+ " got,\n"+
+ "'%+v'\n", name, exp, got)
os.Exit(1)
}
}