From f1a621fa11a4b6fa24e95bc1698a5251372db24a Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 31 May 2024 12:06:50 +0200 Subject: [PATCH] fix: change expect message --- consensus/cryptarchia-engine/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/consensus/cryptarchia-engine/src/lib.rs b/consensus/cryptarchia-engine/src/lib.rs index cffe98f2..d437270d 100644 --- a/consensus/cryptarchia-engine/src/lib.rs +++ b/consensus/cryptarchia-engine/src/lib.rs @@ -341,20 +341,20 @@ pub mod tests { assert_eq!(branch1, branch2); assert_eq!( - branch1.expect("id is set").id(), - branch2.expect("id is set").id() + branch1.expect("id is not set").id(), + branch2.expect("id is not set").id() ); assert_eq!( - branch1.expect("parent is set").parent(), - branch2.expect("parent is set").parent() + branch1.expect("parent is not set").parent(), + branch2.expect("parent is not set").parent() ); assert_eq!( - branch1.expect("slot is set").slot(), - branch2.expect("slot is set").slot() + branch1.expect("slot is not set").slot(), + branch2.expect("slot is not set").slot() ); assert_eq!( - branch1.expect("length is set").length(), - branch2.expect("length is set").length() + branch1.expect("length is not set").length(), + branch2.expect("length is not set").length() ); let slot = Slot::genesis();