diff options
author | Joe Tsai <joetsai@digital-static.net> | 2020-06-10 11:00:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 11:00:30 -0700 |
commit | 9b300311a803504267fb9fc5040a430aa7013956 (patch) | |
tree | 1ad0851b6a1214bb1c5b54e49eba2b42f8bb82ce /cmp/compare_test.go | |
parent | 367e530b4ed74b514889e7945f0b18145337eff3 (diff) | |
download | go-cmp-9b300311a803504267fb9fc5040a430aa7013956.tar.gz |
Batch reporter output for simple lists of textLine elements (#208)
Rather than having a single element on each line,
which hurts readability due to the need for scrolling quite a bit.
Batch multiple elements for simple lists to be on a single line.
Fixes #170
Diffstat (limited to 'cmp/compare_test.go')
-rw-r--r-- | cmp/compare_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmp/compare_test.go b/cmp/compare_test.go index 43ac8f9..22cf153 100644 --- a/cmp/compare_test.go +++ b/cmp/compare_test.go @@ -834,6 +834,11 @@ func reporterTests() []test { wantEqual: false, reason: "batched diffing desired since many elements differ", }, { + label: label + "/BatchedLong", + x: MyComposite{IntsA: []int8{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127}}, + wantEqual: false, + reason: "batched output desired for a single slice of primitives unique to one of the inputs", + }, { label: label, x: MyComposite{ BytesA: []byte{1, 2, 3}, |