Skip to content

Commit

Permalink
Fix scientific notation test (#1878)
Browse files Browse the repository at this point in the history
* fix test

* fix test

* reviews
  • Loading branch information
FrancoGiachetta authored Nov 19, 2024
1 parent 0d86936 commit be5cb9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm/src/serde/deserialize_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit be5cb9a

Please sign in to comment.