Skip to content

Commit

Permalink
add an encode/decode test for a larger number
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed Dec 4, 2023
1 parent 3284e99 commit 45138ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solar/src/actors/replication/ebt/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ pub fn encode(
mod test {
use super::*;

const VALUES: [i64; 5] = [-1, 0, 1, 2, 3];
const NOTES: [(bool, std::option::Option<bool>, std::option::Option<u64>); 5] = [
const VALUES: [i64; 7] = [-1, 0, 1, 2, 3, 12, 450];
const NOTES: [(bool, std::option::Option<bool>, std::option::Option<u64>); 7] = [
(false, None, None),
(true, Some(true), Some(0)),
(true, Some(false), Some(0)),
(true, Some(true), Some(1)),
(true, Some(false), Some(1)),
(true, Some(true), Some(6)),
(true, Some(true), Some(225)),
];

#[test]
Expand Down

0 comments on commit 45138ed

Please sign in to comment.