@@ -70,7 +70,7 @@ type Fail <: Result
70
70
value
71
71
end
72
72
function Base. show (io:: IO , t:: Fail )
73
- print_with_color (:light_red , io, " Test Failed\n " ; bold = true )
73
+ print_with_color (Base . error_color () , io, " Test Failed\n " ; bold = true )
74
74
print (io, " Expression: " , t. orig_expr)
75
75
if t. test_type == :test_throws_wrong
76
76
# An exception was thrown, but it was of the wrong type
@@ -102,7 +102,7 @@ type Error <: Result
102
102
backtrace
103
103
end
104
104
function Base. show (io:: IO , t:: Error )
105
- print_with_color (:light_red , io, " Error During Test\n " ; bold = true )
105
+ print_with_color (Base . error_color () , io, " Error During Test\n " ; bold = true )
106
106
if t. test_type == :test_nonbool
107
107
println (io, " Expression evaluated to non-Boolean" )
108
108
println (io, " Expression: " , t. orig_expr)
@@ -483,16 +483,16 @@ function print_test_results(ts::DefaultTestSet, depth_pad=0)
483
483
print_with_color (:green , lpad (" Pass" ,pass_width," " ), " " ; bold = true )
484
484
end
485
485
if fail_width > 0
486
- print_with_color (:light_red , lpad (" Fail" ,fail_width," " ), " " ; bold = true )
486
+ print_with_color (Base . error_color () , lpad (" Fail" ,fail_width," " ), " " ; bold = true )
487
487
end
488
488
if error_width > 0
489
- print_with_color (:light_red , lpad (" Error" ,error_width," " ), " " ; bold = true )
489
+ print_with_color (Base . error_color () , lpad (" Error" ,error_width," " ), " " ; bold = true )
490
490
end
491
491
if broken_width > 0
492
492
print_with_color (:yellow , lpad (" Broken" ,broken_width," " ), " " ; bold = true )
493
493
end
494
494
if total_width > 0
495
- print_with_color (:blue , lpad (" Total" ,total_width, " " ); bold = true )
495
+ print_with_color (Base . info_color () , lpad (" Total" ,total_width, " " ); bold = true )
496
496
end
497
497
println ()
498
498
# Recursively print a summary at every level
@@ -595,40 +595,40 @@ function print_counts(ts::DefaultTestSet, depth, align,
595
595
596
596
np = passes + c_passes
597
597
if np > 0
598
- print_with_color (:green , lpad (string (np), pass_width, " " ), " " ; bold = true )
598
+ print_with_color (:green , lpad (string (np), pass_width, " " ), " " )
599
599
elseif pass_width > 0
600
600
# No passes at this level, but some at another level
601
601
print (lpad (" " , pass_width), " " )
602
602
end
603
603
604
604
nf = fails + c_fails
605
605
if nf > 0
606
- print_with_color (:light_red , lpad (string (nf), fail_width, " " ), " " ; bold = true )
606
+ print_with_color (Base . error_color () , lpad (string (nf), fail_width, " " ), " " )
607
607
elseif fail_width > 0
608
608
# No fails at this level, but some at another level
609
609
print (lpad (" " , fail_width), " " )
610
610
end
611
611
612
612
ne = errors + c_errors
613
613
if ne > 0
614
- print_with_color (:light_red , lpad (string (ne), error_width, " " ), " " ; bold = true )
614
+ print_with_color (Base . error_color () , lpad (string (ne), error_width, " " ), " " )
615
615
elseif error_width > 0
616
616
# No errors at this level, but some at another level
617
617
print (lpad (" " , error_width), " " )
618
618
end
619
619
620
620
nb = broken + c_broken
621
621
if nb > 0
622
- print_with_color (:yellow , lpad (string (nb), broken_width, " " ), " " ; bold = true )
622
+ print_with_color (:yellow , lpad (string (nb), broken_width, " " ), " " )
623
623
elseif broken_width > 0
624
624
# None broken at this level, but some at another level
625
625
print (lpad (" " , broken_width), " " )
626
626
end
627
627
628
628
if np == 0 && nf == 0 && ne == 0 && nb == 0
629
- print_with_color (:blue , " No tests" ; bold = true )
629
+ print_with_color (Base . info_color () , " No tests" )
630
630
else
631
- print_with_color (:blue , lpad (string (subtotal), total_width, " " ); bold = true )
631
+ print_with_color (Base . info_color () , lpad (string (subtotal), total_width, " " ))
632
632
end
633
633
println ()
634
634
0 commit comments