From ce546cae4c21a98184a3c8823176e82ddf6977ee Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Thu, 8 Aug 2024 18:33:27 +0200 Subject: [PATCH] Remove assertions for tiny doctest examples (#2) Signed-off-by: Heinz N. Gies --- README.md | 3 +-- src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8904614..c3d797a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ use hypertwobits::{HyperTwoBits, M512}; let mut htb = HyperTwoBits::::default(); htb.insert(&"foo"); - assert_eq!(htb.count(), 1); htb.insert(&"bar"); - assert_eq!(htb.count(), 2); + htb.count(); ``` diff --git a/src/lib.rs b/src/lib.rs index a7954b5..bda3993 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,9 +10,8 @@ //! use hypertwobits::{HyperTwoBits, M512}; //! let mut htb = HyperTwoBits::::default(); //! htb.insert(&"foo"); -//! assert_eq!(htb.count(), 1); //! htb.insert(&"bar"); -//! assert_eq!(htb.count(), 2); +//! htb.count(); //! ``` #![deny(clippy::pedantic, missing_docs)]