From 48379a559686246122303ab9c73fb0b9ef3d5d0a Mon Sep 17 00:00:00 2001 From: sriram98v Date: Mon, 2 Oct 2023 13:32:47 -0500 Subject: [PATCH] added test to check node vec --- tests/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index 2e7cea8..06a2fb4 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -60,7 +60,8 @@ fn export_all_nodes(){ for item_idx in 0..string_set.len(){ tree.insert(item_idx.to_string(), string_set[item_idx].clone(), &0); } - tree.export_all_nodes(); + let nodes = tree.export_all_nodes(); + serde_json::to_string_pretty(&nodes).expect("error in node vec"); }