Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/commands/movement.rs')
-rw-r--r--helix-term/tests/test/commands/movement.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/helix-term/tests/test/commands/movement.rs b/helix-term/tests/test/commands/movement.rs
index ed698428..5868fa49 100644
--- a/helix-term/tests/test/commands/movement.rs
+++ b/helix-term/tests/test/commands/movement.rs
@@ -895,6 +895,22 @@ async fn match_bracket() -> anyhow::Result<()> {
}
"##},
),
+ // named node with 2 or more children
+ (
+ indoc! {r##"
+ use a::#[{|]#
+ b::{c, d, e, f, g},
+ h, i, j, k, l, m, n,
+ };
+ "##},
+ "mm",
+ indoc! {r##"
+ use a::{
+ b::{c, d, e, f, g},
+ h, i, j, k, l, m, n,
+ #[}|]#;
+ "##},
+ ),
];
let python_tests = vec![