From 252d18fe4512c4dc7b18cd6b442de7ab51a99cd0 Mon Sep 17 00:00:00 2001 From: Oren Ben-Kiki Date: Mon, 8 Apr 2024 16:43:50 +0300 Subject: [PATCH] Depict special values. --- deps/test.sh | 2 +- docs/v0.1.0/.documenter-siteinfo.json | 2 +- src/messages.jl | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/deps/test.sh b/deps/test.sh index ee8cf4f..9c3d5a2 100755 --- a/deps/test.sh +++ b/deps/test.sh @@ -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) diff --git a/docs/v0.1.0/.documenter-siteinfo.json b/docs/v0.1.0/.documenter-siteinfo.json index 327ae63..b720004 100644 --- a/docs/v0.1.0/.documenter-siteinfo.json +++ b/docs/v0.1.0/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-08T16:22:30","documenter_version":"1.3.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-08T16:36:49","documenter_version":"1.3.0"}} \ No newline at end of file diff --git a/src/messages.jl b/src/messages.jl index a911a92..47782c6 100644 --- a/src/messages.jl +++ b/src/messages.jl @@ -74,7 +74,7 @@ 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 @@ -82,10 +82,6 @@ function depict(::UndefInitializer)::String return "undef" end -function depict(::Missing)::String - return "missing" -end - function depict(value::AbstractString)::String value = replace(value, "\\" => "\\\\", "\"" => "\\\"") return "\"$(value)\""