Skip to content

Normalize line separators in assertions#5061

Merged
trancexpress merged 1 commit into
eclipse-jdt:masterfrom
RagiGeorge:issue_fix_ASTConverterJavaDocTest
May 11, 2026
Merged

Normalize line separators in assertions#5061
trancexpress merged 1 commit into
eclipse-jdt:masterfrom
RagiGeorge:issue_fix_ASTConverterJavaDocTest

Conversation

@RagiGeorge
Copy link
Copy Markdown
Contributor

This fixes the failure reported in #5057, where
ASTConverterJavadocTest_18.testSnippetMultilineOnlyJavadoc5 was failing in Windows

Updated the test assertions to normalize line separators using \R → \n before comparison ensuring consistent behaviour across all environments.

@trancexpress
Copy link
Copy Markdown
Contributor

Thank you for taking a look!

@trancexpress
Copy link
Copy Markdown
Contributor

Please update the commit message to what is in this PR description, e.g.:

Normalize line separators used in ASTConverterJavadocTest_18.testSnippetMultilineOnlyJavadoc5

Updated the test assertions to normalize line separators using \R → \n before comparison ensuring consistent behavior across all environments.

Fixes: https://github.com/eclipse-jdt/eclipse.jdt.core/issues/5057

Then we can merge this.

ASTConverterJavadocTest_18.testSnippetMultilineOnlyJavadoc5

Updated the test assertions to normalize line separators using \R → \n
before comparison ensuring consistent behavior across all environments.

Fixes: eclipse-jdt#5057
@RagiGeorge RagiGeorge force-pushed the issue_fix_ASTConverterJavaDocTest branch from 018db9d to 86e4dc9 Compare May 11, 2026 12:28
@trancexpress trancexpress merged commit 6ca7818 into eclipse-jdt:master May 11, 2026
13 checks passed
@trancexpress
Copy link
Copy Markdown
Contributor

Thank you @RagiGeorge ! I'll check the next I-build, hopefully the fail is gone.

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.

2 participants