From 78645f53dd6fae2b168564b311636990848bc90c Mon Sep 17 00:00:00 2001 From: Thomas Churchman Date: Mon, 20 May 2024 17:08:55 +0200 Subject: [PATCH] refactor: expand test --- src/markdown.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/markdown.rs b/src/markdown.rs index 4aab63f..923d9f1 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -582,8 +582,13 @@ mod test { assert_eq!(b.0, 0b0000_0001); b.set(L::H4, true); assert_eq!(b.0, 0b0000_1001); - b.set(L::H4, false); - assert_eq!(b.0, 0b0000_0001); + + assert!(b.get(L::H1)); + assert!(!b.get(L::H2)); + assert!(!b.get(L::H3)); + assert!(b.get(L::H4)); + assert!(!b.get(L::H5)); + assert!(!b.get(L::H6)); } #[test]