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.
2 parents 36aedd4 + ca5e9bf commit 2ab37adCopy full SHA for 2ab37ad
tests/modules/macros.rs
@@ -17,7 +17,8 @@ fn recursive_macro() {
17
"apple" => "ripe"
18
}
19
],
20
- "e" => { "single" => "test" }
+ "e" => { "single" => "test" },
21
+ "n" => (Bson::Null)
22
};
23
24
match doc.get("a") {
@@ -106,4 +107,11 @@ fn recursive_macro() {
106
107
},
108
_ => panic!("Single-item document was not inserted correctly."),
109
110
+
111
+ match doc.get("n") {
112
+ Some(&Bson::Null) => {
113
+ // It was null
114
+ }
115
+ _ => panic!("Null was not inserted correctly."),
116
117
0 commit comments