We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ScalarValue
1 parent 4b1e044 commit e873423Copy full SHA for e873423
datafusion/proto/src/lib.rs
@@ -465,8 +465,17 @@ mod roundtrip_tests {
465
let proto: super::protobuf::ScalarValue = (&test_case)
466
.try_into()
467
.expect("failed conversion to protobuf");
468
- let _roundtrip: ScalarValue =
469
- (&proto).try_into().expect("failed conversion to protobuf");
+
+ let roundtrip: ScalarValue = (&proto)
470
+ .try_into()
471
+ .expect("failed conversion from protobuf");
472
473
+ assert_eq!(
474
+ test_case, roundtrip,
475
+ "ScalarValue was not the same after round trip!\n\n\
476
+ Input: {:?}\n\nRoundtrip: {:?}",
477
+ test_case, roundtrip
478
+ );
479
}
480
481
0 commit comments