Skip to content

Commit

Permalink
fix(console): fix typo "Remove breakpoint" -> "Removed breakpoint"
Browse files Browse the repository at this point in the history
  • Loading branch information
godzie44 committed Apr 3, 2024
1 parent 881cfa6 commit a4b5a36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/console/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl AppLoop {
Ok(r#break::ExecutionResult::Removed(brkpts)) => {
brkpts
.iter()
.for_each(|brkpt| print_bp("Remove breakpoint", brkpt));
.for_each(|brkpt| print_bp("Removed breakpoint", brkpt));
}
Ok(r#break::ExecutionResult::Dump(brkpts)) => brkpts
.iter()
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def test_function_breakpoint_remove(self):
self.debugger.expect('New breakpoint')

self.debugger.sendline('break remove main')
self.debugger.expect('Remove breakpoint')
self.debugger.expect('Removed breakpoint')

self.debugger.sendline('run')
self.debugger.expect('bye!')
Expand All @@ -283,7 +283,7 @@ def test_line_breakpoint_remove(self):
self.debugger.expect_exact('15 println!("{}", s)')

self.debugger.sendline('break remove hello_world.rs:15')
self.debugger.expect('Remove breakpoint')
self.debugger.expect('Removed breakpoint')

self.debugger.sendline('continue')
self.debugger.expect('bye!')
Expand All @@ -294,7 +294,7 @@ def test_breakpoint_remove_by_number(self):
self.debugger.expect('New breakpoint')

self.debugger.sendline('break remove 1')
self.debugger.expect('Remove breakpoint')
self.debugger.expect('Removed breakpoint')

self.debugger.sendline('run')
self.debugger.expect('bye!')
Expand Down Expand Up @@ -327,7 +327,7 @@ def test_breakpoint_info(self):
self.debugger.expect(r'- Breakpoint 4 at .*0x[0-9A-F]{14,16}.*: .*\/hello_world\.rs.*:7')

self.debugger.sendline('break remove main')
self.debugger.expect('Remove breakpoint')
self.debugger.expect('Removed breakpoint')

self.debugger.sendline('break info')
self.debugger.expect(r'- Breakpoint 1 at .*0x[0-9A-F]{14,16}.*: .*\/hello_world\.rs.*:9 ')
Expand Down

0 comments on commit a4b5a36

Please sign in to comment.