From 289d1f1952e3962b7df7aabadb04fbbb393429cf Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Fri, 16 Feb 2024 11:19:06 +0000 Subject: [PATCH] chore: use `.to_string` instead of relying on `Eq` --- waila/src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/waila/src/lib.rs b/waila/src/lib.rs index 390165f..062ef35 100644 --- a/waila/src/lib.rs +++ b/waila/src/lib.rs @@ -896,11 +896,13 @@ mod tests { assert_eq!(parsed.invoice(), None); assert_eq!(parsed.node_pubkey(), None); assert_eq!(parsed.amount(), Some(Amount::from_sat(10))); - // TODO: (@leonardo) there is not `Eq` implementation for `fedimint-mint-client::OOBNotes` - // assert_eq!( - // parsed.fedimint_oob_notes(), - // Some(OOBNotes::from_str(SAMPLE_FEDIMINT_OOB_NOTES).unwrap()) - // ) + // NOTE: (@leonardo) there is not `Eq` implementation for `fedimint-mint-client::OOBNotes` + assert_eq!( + parsed.fedimint_oob_notes().unwrap().to_string(), + OOBNotes::from_str(SAMPLE_FEDIMINT_OOB_NOTES) + .unwrap() + .to_string() + ) } #[test]