Skip to content

Commit ba1e568

Browse files
Test: add space after test failure for visual clarity (#48526)
1 parent 56667bb commit ba1e568

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stdlib/Test/docs/src/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ julia> @test foo("f") == 20
5555
Test Failed at none:1
5656
Expression: foo("f") == 20
5757
Evaluated: 1 == 20
58+
5859
ERROR: There was an error during testing
5960
```
6061

@@ -224,6 +225,7 @@ julia> @test 1 ≈ 0.999999
224225
Test Failed at none:1
225226
Expression: 1 ≈ 0.999999
226227
Evaluated: 1 ≈ 0.999999
228+
227229
ERROR: There was an error during testing
228230
```
229231
You can specify relative and absolute tolerances by setting the `rtol` and `atol` keyword arguments of `isapprox`, respectively,

stdlib/Test/src/Test.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ function Base.show(io::IO, t::Fail)
165165
print(io, "\n Context: ", t.context)
166166
end
167167
end
168+
println(io) # add some visual space to separate sequential failures
168169
end
169170

170171
"""
@@ -1405,6 +1406,7 @@ julia> @testset let logi = log(im)
14051406
Test Failed at none:3
14061407
Expression: !(iszero(real(logi)))
14071408
Context: logi = 0.0 + 1.5707963267948966im
1409+
14081410
ERROR: There was an error during testing
14091411
```
14101412
"""

0 commit comments

Comments
 (0)