Skip to content

Commit

Permalink
Depict special values.
Browse files Browse the repository at this point in the history
  • Loading branch information
orenbenkiki committed Apr 8, 2024
1 parent e2dce51 commit 252d18f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deps/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e -o pipefail
deps/clean.sh
JULIA_NUM_THREADS=4 julia --color=no --code-coverage=tracefile.info deps/test.jl "$@" \
JULIA_DEBUG="" JULIA_NUM_THREADS=4 julia --color=no --code-coverage=tracefile.info deps/test.jl "$@" \
|| (deps/clean.sh && false)
2 changes: 1 addition & 1 deletion docs/v0.1.0/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-08T16:22:30","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-08T16:36:49","documenter_version":"1.3.0"}}
6 changes: 1 addition & 5 deletions src/messages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,14 @@ function depict(value::Tuple)::String
return "(" * join([depict(entry) for entry in value], ", ") * ")"
end

function depict(value::Union{Bool, Type})::String
function depict(value::Union{Bool, Type, Nothing, Missing})::String
return "$(value)"
end

function depict(::UndefInitializer)::String
return "undef"
end

function depict(::Missing)::String
return "missing"
end

function depict(value::AbstractString)::String
value = replace(value, "\\" => "\\\\", "\"" => "\\\"")
return "\"$(value)\""
Expand Down

0 comments on commit 252d18f

Please sign in to comment.