Skip to content

Commit

Permalink
Add module move test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Nov 26, 2024
1 parent 2ead41e commit 2e00c0b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,10 @@ test bool moduleBarIsNotBaz() = testRenameOccurrences({
'}
", {})
}, oldName = "Foo", newName = "Bar");

test bool moveModule() = testRenameOccurrences({
byText("Foo", "int foo() = 8;", {0}, newName = "path::to::Foo"),
byText("Main", "
'import Foo;
'int f = Foo::foo();", {0, 1}, skipCursors = {1})
}, oldName = "Foo", newName = "path::to::Foo");

0 comments on commit 2e00c0b

Please sign in to comment.