Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Modify list_of_struct test to include validity
Browse files Browse the repository at this point in the history
  • Loading branch information
VasanthakumarV committed Oct 10, 2021
1 parent 6e10337 commit 9ea077d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/it/io/json/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ fn write_list_of_struct() {
Some("f"),
Some("g"),
]))],
None,
Some(Bitmap::from([false, true, true])),
)),
],
None,
Some(Bitmap::from([true, true, false])),
);

// list column rows (c1):
Expand All @@ -280,9 +280,9 @@ fn write_list_of_struct() {

assert_eq!(
String::from_utf8(buf).unwrap(),
r#"{"c1":[{"c11":1,"c12":{"c121":"e"}},{"c11":null,"c12":{"c121":"f"}}],"c2":1}
r#"{"c1":[{"c11":1,"c12":null},{"c11":null,"c12":{"c121":"f"}}],"c2":1}
{"c1":null,"c2":2}
{"c1":[{"c11":5,"c12":{"c121":"g"}}],"c2":3}
{"c1":[null],"c2":3}
"#
);
}

0 comments on commit 9ea077d

Please sign in to comment.