From be5cb9a20b661cadc1382a987032141c6b80251a Mon Sep 17 00:00:00 2001 From: Franco Giachetta Date: Tue, 19 Nov 2024 15:32:53 -0300 Subject: [PATCH] Fix scientific notation test (#1878) * fix test * fix test * reviews --- vm/src/serde/deserialize_program.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm/src/serde/deserialize_program.rs b/vm/src/serde/deserialize_program.rs index 052d9ae09c..82771f7552 100644 --- a/vm/src/serde/deserialize_program.rs +++ b/vm/src/serde/deserialize_program.rs @@ -1492,8 +1492,7 @@ mod tests { #[test] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] fn test_felt_from_number_with_scientific_notation() { - let n = Number::deserialize(serde_json::Value::from(1000000000000000000000000000_u128)) - .unwrap(); + let n = Number::deserialize(serde_json::Value::from(1e27)).unwrap(); assert_eq!(n.to_string(), "1e27".to_owned()); assert_matches!(