diff --git a/src/history/base.rs b/src/history/base.rs index 26d4da05..b5af8305 100644 --- a/src/history/base.rs +++ b/src/history/base.rs @@ -427,4 +427,13 @@ mod test { Ok(()) } + + #[test] + fn create_file_backed_history() { + use crate::HISTORY_SIZE; + + assert!(crate::FileBackedHistory::new(0).is_err()); + assert!(crate::FileBackedHistory::new(usize::MAX).is_err()); + assert!(crate::FileBackedHistory::new(HISTORY_SIZE).is_ok()); + } }