Skip to content

Fix #8355: REPL tests : fix for two tests failing on Windows #8356

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

Merged
merged 2 commits into from
Feb 22, 2020
Merged

Fix #8355: REPL tests : fix for two tests failing on Windows #8356

merged 2 commits into from
Feb 22, 2020

Conversation

michelou
Copy link
Contributor

See description/review in #8355.

@michelou michelou requested a review from liufengyun February 22, 2020 14:07
Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

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

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

private val pattern = Pattern.compile("\\r[\\n]?|\\n");

// Ensure 'expected' and 'actual' contain the same line separator(s).
private def assertMultiLineEquals(expected: String, actual: String): Unit = {
Copy link
Member

@smarter smarter Feb 22, 2020

Choose a reason for hiding this comment

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

Instead of duplicating this method in two file, could you use ReplCompilerTests.assertMultiLineEquals in this file ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fine for me if having a dependency between LoadTests and ReplCompilerTests is ok for you !

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

(CI failures are due to ongoing CI work and can be ignored)

@smarter smarter merged commit f51bf1b into scala:master Feb 22, 2020
@michelou michelou deleted the dotty-multiline branch February 22, 2020 18:52
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.

3 participants