From 735748b359cee5e7f7597128580f6f94bbc0987f Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Tue, 4 Jul 2017 16:36:12 +0800 Subject: [PATCH] fix(tests): TestDebugPrintLoadTemplate use assert.Regep instead of assert.Equal (#973) --- debug_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_test.go b/debug_test.go index c30081c..2b01085 100644 --- a/debug_test.go +++ b/debug_test.go @@ -74,7 +74,7 @@ func TestDebugPrintLoadTemplate(t *testing.T) { templ := template.Must(template.New("").Delims("{[{", "}]}").ParseGlob("./fixtures/basic/hello.tmpl")) debugPrintLoadTemplate(templ) - assert.Equal(t, w.String(), "[GIN-debug] Loaded HTML Templates (2): \n\t- \n\t- hello.tmpl\n\n") + assert.Regexp(t, `^\[GIN-debug\] Loaded HTML Templates \(2\): \n(\t- \n|\t- hello\.tmpl\n){2}\n`, w.String()) } func TestDebugPrintWARNINGSetHTMLTemplate(t *testing.T) {