diff --git a/crates/vim/src/test.rs b/crates/vim/src/test.rs index 5e84b32d60..495dddd513 100644 --- a/crates/vim/src/test.rs +++ b/crates/vim/src/test.rs @@ -1940,8 +1940,8 @@ async fn test_delete_unmatched_brace(cx: &mut gpui::TestAppContext) { let mut cx = NeovimBackedTestContext::new(cx).await; cx.set_shared_state(indoc! { "fn o(wow: i32) { - dbgˇ!(wow) - dbg!(wow) + othˇ(wow) + oth(wow) } " }) @@ -1949,15 +1949,15 @@ async fn test_delete_unmatched_brace(cx: &mut gpui::TestAppContext) { cx.simulate_shared_keystrokes("d ] }").await; cx.shared_state().await.assert_eq(indoc! { "fn o(wow: i32) { - dbˇg + otˇh } " }); - cx.shared_clipboard().await.assert_eq("!(wow)\n dbg!(wow)"); + cx.shared_clipboard().await.assert_eq("(wow)\n oth(wow)"); cx.set_shared_state(indoc! { "fn o(wow: i32) { - ˇdbg!(wow) - dbg!(wow) + ˇoth(wow) + oth(wow) } " }) @@ -1970,5 +1970,5 @@ async fn test_delete_unmatched_brace(cx: &mut gpui::TestAppContext) { }); cx.shared_clipboard() .await - .assert_eq(" dbg!(wow)\n dbg!(wow)\n"); + .assert_eq(" oth(wow)\n oth(wow)\n"); } diff --git a/crates/vim/test_data/test_delete_unmatched_brace.json b/crates/vim/test_data/test_delete_unmatched_brace.json index a5676a763d..e9308edc8b 100644 --- a/crates/vim/test_data/test_delete_unmatched_brace.json +++ b/crates/vim/test_data/test_delete_unmatched_brace.json @@ -1,12 +1,12 @@ -{"Put":{"state":"fn o(wow: i32) {\n dbgˇ!(wow)\n dbg!(wow)\n}\n"}} +{"Put":{"state":"fn o(wow: i32) {\n othˇ(wow)\n oth(wow)\n}\n"}} {"Key":"d"} {"Key":"]"} {"Key":"}"} -{"Get":{"state":"fn o(wow: i32) {\n dbˇg\n}\n","mode":"Normal"}} -{"ReadRegister":{"name":"\"","value":"!(wow)\n dbg!(wow)"}} -{"Put":{"state":"fn o(wow: i32) {\n ˇdbg!(wow)\n dbg!(wow)\n}\n"}} +{"Get":{"state":"fn o(wow: i32) {\n otˇh\n}\n","mode":"Normal"}} +{"ReadRegister":{"name":"\"","value":"(wow)\n oth(wow)"}} +{"Put":{"state":"fn o(wow: i32) {\n ˇoth(wow)\n oth(wow)\n}\n"}} {"Key":"d"} {"Key":"]"} {"Key":"}"} {"Get":{"state":"fn o(wow: i32) {\nˇ}\n","mode":"Normal"}} -{"ReadRegister":{"name":"\"","value":" dbg!(wow)\n dbg!(wow)\n"}} +{"ReadRegister":{"name":"\"","value":" oth(wow)\n oth(wow)\n"}}