Skip to content

Commit

Permalink
Remove unneccesary constructor label from tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Aug 2, 2024
1 parent fc290fd commit bc2970e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rascal-lsp/src/main/rascal/lang/rascal/tests/rename/Grammars.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@ import lang::rascal::tests::rename::TestUtils;

test bool productionFromDef() = ASSERT_EQ({0, 1, 2, 3}, testRenameOccurrences("
'Foo func(Foo f) = f.child;
", decls = "syntax Foo = c: Foo child;"
", decls = "syntax Foo = Foo child;"
, oldName = "Foo", newName = "Bar"));

test bool productionFromTypeUse() = ASSERT_EQ({0, 1, 2, 3}, testRenameOccurrences("
'Foo func(Foo f) = f.child;
", decls = "syntax Foo = c: Foo child;"
", decls = "syntax Foo = Foo child;"
, cursorAtOldNameOccurrence = 1, oldName = "Foo", newName = "Bar"));

test bool productionFromConcreteUse() = ASSERT_EQ({0, 1, 2, 3, 4}, testRenameOccurrences("
'Foo func((Foo) `\<Foo child\>`) = child;
", decls = "syntax Foo = c: Foo child;"
", decls = "syntax Foo = Foo child;"
, cursorAtOldNameOccurrence = 1, oldName = "Foo", newName = "Bar"));

test bool productionFromConcreteFieldUse() = ASSERT_EQ({0, 1, 2, 3, 4}, testRenameOccurrences("
'Foo func((Foo) `\<Foo child\>`) = child;
", decls = "syntax Foo = c: Foo child;"
", decls = "syntax Foo = Foo child;"
, cursorAtOldNameOccurrence = 2, oldName = "Foo", newName = "Bar"));

test bool productionFromPatternUse() = ASSERT_EQ({0, 1, 2}, testRenameOccurrences("
'value t = \"tree\";
'if (/Foo f := t) x = f;
", decls = "syntax Foo = c: Foo child;"
", decls = "syntax Foo = Foo child;"
, cursorAtOldNameOccurrence = 2, oldName = "Foo", newName = "Bar"));

test bool productionFromReifiedType() = ASSERT_EQ({0, 1, 2}, testRenameOccurrences("
Expand Down

0 comments on commit bc2970e

Please sign in to comment.