Skip to content

Commit dec345e

Browse files
committed
add backwards compat tests for Bool verbose
1 parent bf8e8b6 commit dec345e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/verbosity.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@
3535
prob,
3636
verbose = NonlinearVerbosity(linear_verbosity = LinearVerbosity(default_lu_fallback = Verbosity.Info())))
3737

38+
@test_logs (:warn,
39+
"LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient.") match_mode=:any solve(
40+
prob,
41+
verbose = true)
42+
43+
@test_logs min_level=Logging.Info solve(prob,
44+
verbose = NonlinearVerbosity(Verbosity.None()))
45+
46+
@test_logs min_level=Logging.Info solve(prob,
47+
verbose = false)
48+
3849
# Test that caches get correct verbosities
3950
cache = init(prob, verbose = NonlinearVerbosity(threshold_state = Verbosity.Info()))
4051

0 commit comments

Comments
 (0)