Skip to content

Commit

Permalink
Add self-qualified test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Nov 26, 2024
1 parent f6b0bf5 commit 046df83
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,12 @@ test bool moveModule() = testRenameOccurrences({
'import Foo;
'int f = Foo::foo();", {0, 1}, skipCursors = {1})
}, oldName = "Foo", newName = "path::to::Foo");

test bool qualifiedSelf() = testRenameOccurrences({
byText("Foo", "
'void f() {}
'void g() {
' Foo::f();
'}
", {0, 1}, skipCursors = {1}, newName = "Bar")
}, oldName = "Foo", newName = "Bar");

0 comments on commit 046df83

Please sign in to comment.