From 45138ed726edb3259bd40e4aa9742b934cbbb113 Mon Sep 17 00:00:00 2001 From: mycognosist Date: Mon, 4 Dec 2023 07:17:25 +0200 Subject: [PATCH] add an encode/decode test for a larger number --- solar/src/actors/replication/ebt/clock.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solar/src/actors/replication/ebt/clock.rs b/solar/src/actors/replication/ebt/clock.rs index 7c674d6..54ec7ad 100644 --- a/solar/src/actors/replication/ebt/clock.rs +++ b/solar/src/actors/replication/ebt/clock.rs @@ -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, std::option::Option); 5] = [ + const VALUES: [i64; 7] = [-1, 0, 1, 2, 3, 12, 450]; + const NOTES: [(bool, std::option::Option, std::option::Option); 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]