tustvold commented on code in PR #4070:
URL: https://github.com/apache/arrow-rs/pull/4070#discussion_r1164558807


##########
arrow-schema/src/datatype.rs:
##########
@@ -742,4 +742,24 @@ mod tests {
     fn size_should_not_regress() {
         assert_eq!(std::mem::size_of::<DataType>(), 24);
     }
+
+    #[test]
+    fn test_union_with_duplicated_type_id() {
+        std::panic::set_hook(Box::new(|_info| {

Review Comment:
   You can use should_panic for this, there should be examples you can crib 
from around the codebase



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to