Skip to content

Commit

Permalink
Improve test fail message
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 9, 2024
1 parent 8322542 commit ed5cc1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/store/re_types/tests/types/validity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ fn validity_checks() {
let serialized = Position2D::to_arrow2_opt(bad).unwrap();
let deserialized = Position2D::from_arrow2(serialized.as_ref());
assert!(deserialized.is_err());
assert!(matches!(
deserialized.err().unwrap(),
DeserializationError::MissingData { .. }
));
let actual_error = deserialized.err().unwrap();
assert!(
matches!(actual_error, DeserializationError::MissingData { .. }),
"Expected error MissingData, got {actual_error:?}",
);
}

0 comments on commit ed5cc1c

Please sign in to comment.