chaokunyang commented on code in PR #2533:
URL: https://github.com/apache/fory/pull/2533#discussion_r2302700358
##########
rust/tests/tests/test_compatible.rs:
##########
@@ -51,16 +51,52 @@ fn simple() {
f1: HashMap::from([(1, vec![2])]),
f2: String::from("hello"),
f3: vec![1, 2, 3],
- f5: String::from("f5"),
- // f6: vec![42]
+ f5: vec![42],
+ f6: String::from("f5"),
};
let bin = fory1.serialize(&animal);
let obj: Animal2 = fory2.deserialize(&bin).unwrap();
assert_eq!(animal.f1, obj.f1);
assert_eq!(animal.f3, obj.f3);
assert_eq!(obj.f4, String::default());
- assert_eq!(obj.f5, i8::default());
+ assert_eq!(obj.f5, Vec::default());
+ assert_eq!(obj.f6, i8::default());
+}
+
+#[test]
+fn dynamic_gen_de() {
Review Comment:
```suggestion
fn dynamic_gen_deserial() {
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]