diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-04-05 21:03:16 +0200 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2015-05-08 22:27:00 -0400 |
commit | a52e508d4628da4c976f4fe3f55eab2293686ee6 (patch) | |
tree | f8354719b2fd0d7c5c92ef8da1fc72becaee82c8 /hugolib/pagination_test.go | |
parent | 2b91b480d01cfcd4b13922effb25d83bc5dd3fb2 (diff) |
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]
Diffstat (limited to 'hugolib/pagination_test.go')
-rw-r--r-- | hugolib/pagination_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pagination_test.go b/hugolib/pagination_test.go index f42197ba7..5d7dcc3e5 100644 --- a/hugolib/pagination_test.go +++ b/hugolib/pagination_test.go @@ -301,7 +301,7 @@ func TestProbablyEqualPageLists(t *testing.T) { result := probablyEqualPageLists(this.v1, this.v2) if result != this.expect { - t.Errorf("[%d] Got %t but expected %t", i, result, this.expect) + t.Errorf("[%d] got %t but expected %t", i, result, this.expect) } } |