← Commit history

dialogs: the bridge's own palette is never a dialog candidate; Fusion Electronics' router assertion classifies as fusion_unexpected_condition (identical content on the routing branch, ahead of its merge)

John Lauer ·dc8c160f3f ·29d ago ·parent 8672c1f
1 file changed +6
rust/core/src/dialogs.rs+6
@@ -72,6 +72,12 @@ pub fn rect_of(r: &Value) -> Value {  #[cfg(test)] mod tests {+    #[test]+    fn assertion_body_classifies() {+        let c = super::category_for_title("Fusion Electronics has detected an unexpected condition. Please report this error ... File: R:\\Electron\\EAGLE\\src\\pusher.cpp, Line 492. Condition: inLocator").unwrap();+        assert_eq!(c.0, "fusion_unexpected_condition");+        assert_eq!(super::category_for_title("Fusion").unwrap().0, "generic_modal_read_screenshot");+    }     #[test]     fn own_palette_is_never_a_dialog() {         let rows = vec![