We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6cfde commit 9e1827eCopy full SHA for 9e1827e
stdlib/Logging/test/runtests.jl
@@ -19,6 +19,13 @@ macro customlog(exs...) Base.CoreLogging.logmsg_code((Base.CoreLogging.@_sourcei
19
@test :handle_message in names(Logging, all=true) # non-exported public function
20
end
21
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
+
29
@testset "ConsoleLogger" begin
30
# First pass log limiting
31
@test min_enabled_level(ConsoleLogger(devnull, Logging.Debug)) == Logging.Debug
0 commit comments