Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2836] adapt to changes in ltk.refactoring #2900

Merged
merged 2 commits into from
Jan 10, 2024
Merged

[2836] adapt to changes in ltk.refactoring #2900

merged 2 commits into from
Jan 10, 2024

Conversation

LorenzoBettini
Copy link
Contributor

Closes #2836

I created an easier way to specify the expectation as a string.

@@ -78,6 +80,11 @@ public void assertLogged(List<String> expectation) {
throw new ComparisonFailure("", expectedEventsDump, eventsDump);
}
}

public void assertLogged(String expectation) {
String eventsDump = IterableExtensions.join(events, "\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be String.join

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szarnekow definitely yes :)
I've updated the other occurrences 2a47548

@@ -17,7 +19,6 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor;
import org.eclipse.xtext.xbase.lib.IterableExtensions;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

+ "Worked 21 (2124.0)\n"
+ "Worked 21 (2145.0)\n"
+ "Worked 21 (2166.0)\n"
+ "Worked 84 (2250.0)\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh gosh this progresss reporting is awful.
41, 20, 84, 41, 41, 125 ...

Anyhow, not our fault.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it is! :'(
At least, by directly comparing strings instead of creating lists of strings, from now on it should be easier to fix it

@LorenzoBettini LorenzoBettini merged commit d05f413 into main Jan 10, 2024
9 checks passed
@LorenzoBettini LorenzoBettini deleted the lb_2836 branch January 10, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test fail on latest
2 participants