mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-25 18:47:42 -06:00
fix(shortcuts): exempt contextual pairs in the ui-conflicts test
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user