|
41 | 41 | @test Cthulhu.default_terminal() isa REPL.Terminals.TTYTerminal
|
42 | 42 | end
|
43 | 43 | colorize(active_option::Bool, c::Char) = Cthulhu.stringify() do io
|
44 |
| - active_option ? printstyled(io, c; color=:green) : printstyled(io, c; color=:red) |
| 44 | + active_option ? printstyled(io, c; bold=true, color=:blue) : printstyled(io, c; color=:magenta) |
45 | 45 | end
|
46 | 46 |
|
47 | 47 | colorize(s::AbstractString; color::Symbol = :cyan) = Cthulhu.stringify() do io
|
|
80 | 80 | @test occursin('[' * colorize(true, 'o') * "]ptimize", lines)
|
81 | 81 | @test occursin('[' * colorize(true, 'T') * "]yped", lines)
|
82 | 82 |
|
83 |
| - @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :blue), lines) # beginning of the line |
| 83 | + @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :green), lines) # beginning of the line |
84 | 84 | @test occursin('•', lines)
|
85 | 85 | write(in, 'o') # switch to unoptimized
|
86 | 86 | lines = cread(out)
|
87 | 87 | @test occursin("invoke simplef(::Float32,::Int32)::Float32", lines)
|
88 | 88 | @test occursin(r"\(z = a \* a\)\u001B\[\d\dm::Float32\u001B\[39m", lines)
|
89 | 89 | @test occursin('[' * colorize(false, 'o') * "]ptimize", lines)
|
90 |
| - @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :blue), lines) # beginning of the line |
| 90 | + @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :green), lines) # beginning of the line |
91 | 91 | @test occursin("• %1 = *(::Float32,::Float32)::Float32", lines)
|
92 | 92 | # Call selection
|
93 | 93 | write(in, keydict[:down])
|
|
119 | 119 | @test occursin(r"z.*::Float32", lines)
|
120 | 120 | @test occursin(r"\nBody.*Float32", lines)
|
121 | 121 | @test occursin('[' * colorize(true, 'w') * "]arn", lines)
|
122 |
| - @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :blue), lines) # beginning of the line |
| 122 | + @test occursin('\n' * colorize("Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark."; color = :green), lines) # beginning of the line |
123 | 123 | @test occursin("• %1 = *(::Float32,::Float32)::Float32", lines)
|
124 | 124 | # Source view
|
125 | 125 | write(in, 'S')
|
|
0 commit comments