Change summary
crates/vim/src/test.rs | 14 ++++++------
crates/vim/test_data/test_delete_unmatched_brace.json | 10 ++++----
2 files changed, 12 insertions(+), 12 deletions(-)
Detailed changes
@@ -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");
}
@@ -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"}}