test: Slot genesis and add

This commit is contained in:
Roman 2024-05-30 21:44:43 +02:00
parent 21388e142a
commit 2e4ec9a586
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
1 changed files with 5 additions and 1 deletions

View File

@ -220,7 +220,7 @@ where
#[cfg(test)]
pub mod tests {
use super::Cryptarchia;
use super::{Cryptarchia, Slot};
use crate::Config;
use std::hash::{DefaultHasher, Hash, Hasher};
@ -356,5 +356,9 @@ pub mod tests {
branch1.expect("length is set").length(),
branch2.expect("length is set").length()
);
let slot = Slot::genesis();
assert_eq!(slot + 10u64, Slot::from(10));
}
}