From 0247165b2291df522a1d7c35bdd0631bbba25ff1 Mon Sep 17 00:00:00 2001 From: Juanma Date: Mon, 13 Feb 2023 16:14:45 -0300 Subject: [PATCH] Fix relocatable tests --- src/types/relocatable.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/relocatable.rs b/src/types/relocatable.rs index 7624b29e50..731481afca 100644 --- a/src/types/relocatable.rs +++ b/src/types/relocatable.rs @@ -381,18 +381,18 @@ mod tests { #[test] fn add_bigint_to_int() { let addr = MaybeRelocatable::from(Felt::new(7i32)); - let _added_addr = addr.add_int(&Felt::new(2i32)); + let added_addr = addr.add_int(&Felt::new(2i32)); assert_matches!( - Ok::(MaybeRelocatable::Int(Felt::new(9i32))), - _added_addr + added_addr, + Ok(MaybeRelocatable::Int(num)) if num == Felt::new(9) ); } #[test] fn add_usize_to_int() { let addr = MaybeRelocatable::from(Felt::new(7_i32)); - let _added_addr = addr.add_usize(2); - assert_eq!(MaybeRelocatable::Int(Felt::new(9_i32)), _added_addr); + let added_addr = addr.add_usize(2); + assert_eq!(MaybeRelocatable::Int(Felt::new(9)), added_addr); } #[test]