Skip to content

Commit

Permalink
Add large, repetitive test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Jul 2, 2024
1 parent 8252a54 commit edec500
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rascal-lsp/src/main/rascal/lang/rascal/tests/Rename.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,14 @@ test bool multiModuleTest() = testRenameOccurrences((
, {0}>
), <"Main", "foo", 0>);

int LARGE_TEST_SIZE = 200;
test bool largeTest() = ({0} | it + {foos + 3, foos + 4, foos + 5} | i <- [0..LARGE_TEST_SIZE], foos := 5 * i) == testRenameOccurrences((
"int foo = 8;"
| "<it>
'int f<i>(int foo) = foo;
'foo = foo + foo;"
| i <- [0..LARGE_TEST_SIZE])
);

//// Fixtures and utility functions

Expand Down

0 comments on commit edec500

Please sign in to comment.