| 1 | From d53c651a8fd65656e486eb5c7e20ab889f64639b Mon Sep 17 00:00:00 2001
|
| 2 | From: "Artyom V. Poptsov" <[email protected]>
|
| 3 | Date: Sun, 28 Apr 2024 13:24:34 +0300
|
| 4 | Subject: [PATCH] output_test.go: Fix tests
|
| 5 |
|
| 6 | * output_test.go (TestGoTestOutputTree, TestGoTestOutputFun): Fix
|
| 7 | tests.
|
| 8 | ---
|
| 9 | output_test.go | 40 ++++++++++++++++++++--------------------
|
| 10 | 1 file changed, 20 insertions(+), 20 deletions(-)
|
| 11 |
|
| 12 | diff --git a/output_test.go b/output_test.go
|
| 13 | index eb3e0e9..58948c2 100644
|
| 14 | |
| 15 | |
| 16 | @@ -75,15 +75,15 @@ func TestGoTestOutputTree(t *testing.T) {
|
| 17 | diff := strdiff(nom, Dedent(`
|
| 18 | === RUN TestGoTestOutputTree_helper
|
| 19 | === RUN TestGoTestOutputTree_helper/subtest
|
| 20 | + output_test.go:NN: wtf
|
| 21 | === RUN TestGoTestOutputTree_helper/subtest/subsubtest
|
| 22 | + output_test.go:NN: sadz
|
| 23 | === RUN TestGoTestOutputTree_helper/subtest/happy_subsubtest
|
| 24 | + output_test.go:NN: ooh!
|
| 25 | --- FAIL: TestGoTestOutputTree_helper (N.NNs)
|
| 26 | --- FAIL: TestGoTestOutputTree_helper/subtest (N.NNs)
|
| 27 | - output_test.go:NN: wtf
|
| 28 | --- FAIL: TestGoTestOutputTree_helper/subtest/subsubtest (N.NNs)
|
| 29 | - output_test.go:NN: sadz
|
| 30 | --- PASS: TestGoTestOutputTree_helper/subtest/happy_subsubtest (N.NNs)
|
| 31 | - output_test.go:NN: ooh!
|
| 32 | FAIL
|
| 33 | exit status N
|
| 34 | FAIL github.com/warpfork/go-wish N.NNNs
|
| 35 | @@ -149,28 +149,28 @@ func TestGoTestOutputFun(t *testing.T) {
|
| 36 | diff := strdiff(nom, Dedent(`
|
| 37 | === RUN TestGoTestOutputFun_helper
|
| 38 | === RUN TestGoTestOutputFun_helper/subtest
|
| 39 | + output_test.go:NNN: hello!
|
| 40 | === RUN TestGoTestOutputFun_helper/subtest/subsubtest
|
| 41 | + output_test.go:NNN: ShouldEqual check rejected:
|
| 42 | + @@ -N +N @@
|
| 43 | + - snafoo
|
| 44 | + + zounds
|
| 45 | +
|
| 46 | + output_test.go:NNN: ShouldEqual check rejected:
|
| 47 | + @@ -N +N @@
|
| 48 | + - zebras
|
| 49 | + + cats
|
| 50 | +
|
| 51 | + output_test.go:NNN: ShouldEqual check rejected:
|
| 52 | + interface{}(
|
| 53 | + - struct{ Foo string }{},
|
| 54 | + + struct{ Bar string }{},
|
| 55 | + )
|
| 56 | +
|
| 57 | === RUN TestGoTestOutputFun_helper/subtest/happy_subsubtest
|
| 58 | --- FAIL: TestGoTestOutputFun_helper (N.NNs)
|
| 59 | --- FAIL: TestGoTestOutputFun_helper/subtest (N.NNs)
|
| 60 | - output_test.go:NNN: hello!
|
| 61 | --- FAIL: TestGoTestOutputFun_helper/subtest/subsubtest (N.NNs)
|
| 62 | - output_test.go:NNN: ShouldEqual check rejected:
|
| 63 | - @@ -N +N @@
|
| 64 | - - snafoo
|
| 65 | - + zounds
|
| 66 | -
|
| 67 | - output_test.go:NNN: ShouldEqual check rejected:
|
| 68 | - @@ -N +N @@
|
| 69 | - - zebras
|
| 70 | - + cats
|
| 71 | -
|
| 72 | - output_test.go:NNN: ShouldEqual check rejected:
|
| 73 | - interface{}(
|
| 74 | - - struct{ Foo string }{},
|
| 75 | - + struct{ Bar string }{},
|
| 76 | - )
|
| 77 | -
|
| 78 | --- PASS: TestGoTestOutputFun_helper/subtest/happy_subsubtest (N.NNs)
|
| 79 | FAIL
|
| 80 | exit status N
|
| 81 |
|
| 82 | base-commit: 39a1cc7a02d01d037bc6bc075e6550279026e645
|
| 83 | --
|
| 84 | 2.41.0
|
| 85 |
|