Skip to content

Commit 9e1827e

Browse files
committed
add tests
1 parent 9f6cfde commit 9e1827e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/Logging/test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ macro customlog(exs...) Base.CoreLogging.logmsg_code((Base.CoreLogging.@_sourcei
1919
@test :handle_message in names(Logging, all=true) # non-exported public function
2020
end
2121

22+
@testset "LogLevel compatibility with integers" begin
23+
@test Logging.Debug + 1000 == Logging.Info
24+
@test Logging.Warn - 1000 == Logging.Info
25+
@test Logging.Info < 500
26+
@test 500 < Logging.Warn
27+
end
28+
2229
@testset "ConsoleLogger" begin
2330
# First pass log limiting
2431
@test min_enabled_level(ConsoleLogger(devnull, Logging.Debug)) == Logging.Debug

0 commit comments

Comments
 (0)