Don't use dbg!
in test input (#27811)
It confuses me when I grep for dbg! 🤦
Release Notes:
- N/A
This commit is contained in:
parent
8546dc101d
commit
37ebb47238
2 changed files with 12 additions and 12 deletions
|
@ -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"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue