Skip to content

Commit a442ca3

Browse files
committed
add tests
1 parent 9f6cfde commit a442ca3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/Logging/test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ 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.Info < 500
25+
@test 500 < Logging.Warn
26+
end
27+
2228
@testset "ConsoleLogger" begin
2329
# First pass log limiting
2430
@test min_enabled_level(ConsoleLogger(devnull, Logging.Debug)) == Logging.Debug

0 commit comments

Comments
 (0)