1 parent 6f4194e commit 77999e1Copy full SHA for 77999e1
1 file changed
in-cli/src/in_lang_parse/lexer.rs
@@ -330,3 +330,21 @@ pub fn filter_top_level_in_decl_lines(source: &str) -> String {
330
.collect::<Vec<_>>()
331
.join("\n")
332
}
333
+
334
+#[cfg(test)]
335
+mod tests {
336
+ use super::*;
337
338
+ #[test]
339
+ fn test_human_in_debug_toggle() {
340
+ let initial = human_in_debug();
341
342
+ set_human_in_debug(true);
343
+ assert!(human_in_debug());
344
345
+ set_human_in_debug(false);
346
+ assert!(!human_in_debug());
347
348
+ set_human_in_debug(initial);
349
+ }
350
+}
0 commit comments