Skip to content

Commit c0bb53f

Browse files
committed
Remove veggies and test-drive from ep 4 solution
1 parent 319c02d commit c0bb53f

File tree

1 file changed

+1
-64
lines changed
  • episodes/4-debugging-a-broken-test/solution

1 file changed

+1
-64
lines changed

episodes/4-debugging-a-broken-test/solution/README.md

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,7 @@
44

55
> Which tests are failing?
66
7-
The error messages from each of the frameworks shown below are all pointing to the same issue. The test that checks that a 3x3
8-
asymmetric matrix is transposed is failing.
9-
10-
### Veggies
11-
12-
The output indicates that the failing test relates to `transpose` and, more specifically, is testing that
13-
`a matrix is transposed as expected`.
14-
15-
```txt
16-
Running Tests
17-
18-
Test that
19-
transpose
20-
a matrix is transposed as expected
21-
22-
A total of 1 test cases
23-
24-
Failed
25-
Took 4.47e-4 seconds
26-
27-
Test that
28-
transpose
29-
a matrix is transposed as expected
30-
Expected
31-
|[[1.0, 4.0, 0.0],
32-
[6.0, 1.0, 0.0],
33-
[0.0, 3.0, 1.0]]|
34-
to be within |±1.0e-5| of
35-
|[[1.0, 6.0, 0.0],
36-
[4.0, 1.0, 3.0],
37-
[0.0, 0.0, 1.0]]|
38-
39-
1 of 1 cases failed
40-
1 of 2 assertions failed
41-
```
42-
43-
### test-drive
44-
45-
Similarly to the Veggies test, the test-drive output shown below indicates that the failing test relates to `transpose` and, more
46-
specifically, is testing a `3x3 asymmetric matrix`.
47-
48-
```txt
49-
# Running testdrive tests suite
50-
# Testing: transpose
51-
Starting 3x3 identity matrix ... (1/2)
52-
... 3x3 identity matrix [PASSED]
53-
Starting 3x3 asymmetric matrix ... (2/2)
54-
... 3x3 asymmetric matrix [FAILED]
55-
Message: Unexpected value for output(1,2), got 4.0 expected 6.0
56-
1 test(s) failed!
57-
ERROR STOP 1
58-
59-
Error termination. Backtrace:
60-
#0 0x10079ad2f
61-
#1 0x10079b8d7
62-
#2 0x10079cb1f
63-
#3 0x100153503
64-
#4 0x100153973
65-
#5 0x1001539b7
66-
```
67-
68-
### pFUnit
69-
70-
Again, the pFUnit output shown below indicates that the failing test is from the `test_transpose_suite` testsuite and, more
7+
The pFUnit output shown below indicates that the failing test is from the `test_transpose_suite` testsuite and, more
718
specifically, is testing a `3x3 Asymmetric` matrix.
729

7310
```txt

0 commit comments

Comments
 (0)