Skip to content

Commit

Permalink
serde
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Capybara committed Apr 5, 2024
1 parent c56806f commit 224fca8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/e448_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,11 @@ use serde_json; // Ensure serde_json is added to your Cargo.toml for this

#[test]
fn extended_point_serde_round_trip() {
// Step 1: Serialize the original ExtendedPoint
let original_point = ExtendedPoint::generator();
let serialized_point =
serde_json::to_string(&original_point).expect("Failed to serialize ExtendedPoint");

// Step 2: Deserialize back to an ExtendedPoint
let deserialized_point: ExtendedPoint =
serde_json::from_str(&serialized_point).expect("Failed to deserialize ExtendedPoint");

// Step 3: Assertions for correctness
// Assert that the deserialized ExtendedPoint matches the original
assert_eq!(
original_point, deserialized_point,
"Deserialized ExtendedPoint does not match the original"
Expand Down

0 comments on commit 224fca8

Please sign in to comment.