From 9ea077df3915b659dd66419500fa8c36e0834744 Mon Sep 17 00:00:00 2001 From: VasanthakumarV Date: Sun, 10 Oct 2021 16:11:14 +0530 Subject: [PATCH] Modify list_of_struct test to include validity --- tests/it/io/json/write.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/it/io/json/write.rs b/tests/it/io/json/write.rs index 80029b2023d..3d514f333cd 100644 --- a/tests/it/io/json/write.rs +++ b/tests/it/io/json/write.rs @@ -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): @@ -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} "# ); }