Skip to content

Commit bb11021

Browse files
committed
Add a unit test for Level::count
1 parent 6bc0052 commit bb11021

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spdlog/src/level.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,4 +618,9 @@ mod tests {
618618
produce_all(LevelFilter::MoreVerboseEqual).for_each(assert_this);
619619
assert_this(LevelFilter::All);
620620
}
621+
622+
#[test]
623+
fn level_count() {
624+
assert_eq!(Level::iter().count(), Level::count());
625+
}
621626
}

0 commit comments

Comments
 (0)