fix(shortcuts): exempt contextual pairs in the ui-conflicts test

This commit is contained in:
mahmatias
2026-10-22 10:05:28 -03:00
parent d1ccdc4775
commit acbf7c70f2
+2 -1
View File
@@ -1136,7 +1136,8 @@ mod tests {
}
for (i, (k, a)) in ui.iter().enumerate() {
for (k2, b) in &ui[i + 1..] {
assert!(k != k2, "{a} and {b} share a key");
let contextual = CONTEXTUAL.iter().any(|(x, y)| (x == a && y == b) || (x == b && y == a));
assert!(k != k2 || contextual, "{a} and {b} share a key");
}
}
for (i, (k, a)) in engine.iter().enumerate() {