Skip to content

Commit 6ba3ed5

Browse files
committed
marks: nicer green check mark (for JuliaMono)
1 parent 0800b2c commit 6ba3ed5

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

src/ReTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ function dryrun(mod::Module, ts::TestsetExpr, pat::Pattern, align::Int=0, parent
13641364
end
13651365

13661366
if marks && res !== nothing
1367-
printstyled(res ? " " : "", color = res ? :green : Base.error_color(),
1367+
printstyled(res ? " " : "", color = res ? :green : Base.error_color(),
13681368
bold=true)
13691369
end
13701370
end
@@ -1400,7 +1400,7 @@ function dryrun(mod::Module, ts::TestsetExpr, pat::Pattern, align::Int=0, parent
14001400
end
14011401
if show
14021402
passes &&
1403-
printstyled(" ", color = :light_black, bold=true)
1403+
printstyled(" ", color = :light_black, bold=true)
14041404
fails &&
14051405
printstyled("", color = :light_black, bold=true)
14061406
unrun &&

test/runtests.jl

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function check(rx, list)
6969
seekstart(io)
7070
expected = map(list) do t
7171
if t in innertestsets
72-
" " * t * " "
72+
" " * t * " "
7373
else
74-
t * " "
74+
t * " "
7575
end
7676
end
7777
expected = join(expected, '\n')
@@ -922,63 +922,63 @@ l2 ⋯
922922
""")
923923
retest(Marks, "-x", "k1")
924924
check(Marks, "-x", dry=true, marks=true, verbose=3, id=false, [], output=raw"""
925-
a
925+
a
926926
b
927927
c
928928
"d$(x)"
929929
e
930-
l1
931-
k1
930+
l1
931+
k1
932932
k2
933-
l2
934-
k1
933+
l2
934+
k1
935935
k2
936936
""")
937937
check(Marks, "-x", dry=true, marks=true, verbose=1, id=false, [], output=raw"""
938-
a
939-
l1 ✅ ✅
940-
l2 ✅ ✅
938+
a
939+
l1 ✔ ✔
940+
l2 ✔ ✔
941941
""")
942942
@test_throws Test.TestSetException retest(Marks, "e")
943943
check(Marks, "-x", "a", dry=true, marks=true, verbose=3, id=false, [], output=raw"""
944-
a
944+
a
945945
b
946946
c
947947
"d$(x)"
948948
e ✘
949949
""")
950950
check(Marks, "-x", "a", dry=true, marks=true, verbose=1, id=false, [], output=raw"""
951-
a ✘ ⋯
951+
a ✘ ⋯
952952
""")
953953
retest(Marks, "b")
954954
check(Marks, "a", dry=true, marks=true, verbose=3, id=false, [], output=raw"""
955-
a
956-
b
955+
a
956+
b
957957
c
958958
"d$(x)"
959959
e ✘
960960
""")
961961
check(Marks, "a", dry=true, marks=true, verbose=1, id=false, [], output=raw"""
962-
a ✅ ✅ ✘ ⋯
962+
a ✔ ✔ ✘ ⋯
963963
""")
964964
retest(Marks, "l2")
965965
check(Marks, "-x", dry=true, marks=true, verbose=3, id=false, [], output=raw"""
966-
a
967-
b
966+
a
967+
b
968968
c
969969
"d$(x)"
970970
e ✘
971-
l1
972-
k1
971+
l1
972+
k1
973973
k2
974-
l2
975-
k1
976-
k2
974+
l2
975+
k1
976+
k2
977977
""")
978978
check(Marks, "-x", dry=true, marks=true, verbose=1, id=false, [], output=raw"""
979-
a ✅ ✅ ✘ ⋯
980-
l1 ✅ ✅
981-
l2 ✅ ✅
979+
a ✔ ✔ ✘ ⋯
980+
l1 ✔ ✔
981+
l2 ✔ ✔
982982
""")
983983

984984
check(Marks, "x", dry=true, marks=true, verbose=3, id=false, interpolated, [], output="""
@@ -1002,31 +1002,31 @@ x
10021002
retest(Marks, r"y1$")
10031003
# at record success at depth==2
10041004
check(Marks, "x", dry=true, marks=true, verbose=1, id=false, interpolated, [],
1005-
output="x ✅ ✅")
1005+
output="x ✔ ✔")
10061006
@test_throws Test.TestSetException retest(Marks, "y2/z4")
10071007
check(Marks, "x", dry=true, marks=true, verbose=1, id=false, interpolated, [],
1008-
output="x ✅ ✅ ✘ ⋯")
1008+
output="x ✔ ✔ ✘ ⋯")
10091009
@test_throws Test.TestSetException retest(Marks, "x")
10101010
check(Marks, "x", dry=true, marks=true, verbose=3, id=false, interpolated, [], output="""
1011-
x
1012-
y1
1013-
z1
1014-
z2
1015-
z3
1016-
z4
1017-
y2
1018-
z1
1019-
z2
1020-
z3
1011+
x
1012+
y1
1013+
z1
1014+
z2
1015+
z3
1016+
z4
1017+
y2
1018+
z1
1019+
z2
1020+
z3
10211021
z4 ✘
10221022
""")
10231023
check(Marks, "x", dry=true, marks=true, verbose=2, id=false, interpolated, [], output="""
1024-
x
1025-
y1 ✅ ✅
1026-
y2 ✅ ✅
1024+
x
1025+
y1 ✔ ✔
1026+
y2 ✔ ✔
10271027
""")
10281028
check(Marks, "x", dry=true, marks=true, verbose=1, id=false, interpolated, [], output="""
1029-
x ✅ ✅
1029+
x ✔ ✔
10301030
""")
10311031
end
10321032

0 commit comments

Comments
 (0)