From a52e508d4628da4c976f4fe3f55eab2293686ee6 Mon Sep 17 00:00:00 2001 From: bep Date: Sun, 5 Apr 2015 21:03:16 +0200 Subject: Update test logs for uniformity and consistency Many minor fixes to make test logs more consistent and correct a mispelling. Standardize on "[%i] got X but expected Y" for log messages. Using a consistent layout makes it easier to read the test results. This was mostly changing "Got" to "got". Swapped the order of values on several calls to bring them in line with the convention. A few log messages had a sequence number added to identify the exact scenario that failed. Otherwise, there would be no way to ascertain which failed When there are many scenarios. Correct spelling of "expected." Fixes #1028 Merged be2097e1ad789eca5d893805a059d94defbe5c48 [close #1040] --- parser/frontmatter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser/frontmatter_test.go') diff --git a/parser/frontmatter_test.go b/parser/frontmatter_test.go index 33db0a24a..c9c3c0eaa 100644 --- a/parser/frontmatter_test.go +++ b/parser/frontmatter_test.go @@ -19,7 +19,7 @@ func TestFormatToLeadRune(t *testing.T) { result := FormatToLeadRune(this.kind) if result != this.expect { - t.Errorf("[%d] Got %q but expected %q", i, result, this.expect) + t.Errorf("[%d] got %q but expected %q", i, result, this.expect) } } } -- cgit v1.2.3