Skip to content

Commit

Permalink
Update Java 21 string patterns tests after JDT Core bugfix
Browse files Browse the repository at this point in the history
eclipse-jdt/eclipse.jdt.core#1719 was fixed.
Change test to expect the correct strings for processed string pattern.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
  • Loading branch information
kriegaex committed Feb 12, 2024
1 parent 3c2458a commit 1287b1b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@
<compile files="StringPatternsPreview1.java" options="--enable-preview -21"/>
<run class="StringPatternsPreview1" vmargs="--enable-preview">
<stdout ordered="yes">
<!-- TODO: Due to https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1719, this is currently rendered
incorrectly. After the upstream fix, change "\Bill \Duck" to "Bill Duck". -->
<line text="\Bill \Duck"/>
<line text="Bill Duck"/>
<line text="10 + 20 = 30"/>
<line text="You have a special New Year's sale discount waiting for you!"/>
<line text="Access at 2011-11-11 11:11:11 from localhost/127.0.0.1"/>
Expand Down Expand Up @@ -229,9 +227,7 @@
<run class="StringPatternsPreview1Aspect" vmargs="--enable-preview">
<stdout ordered="yes">
<line text="execution(void StringPatternsPreview1Aspect.main(String[]))"/>
<!-- TODO: Due to https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1719, this is currently rendered
incorrectly. After the upstream fix, change "\Bill \Duck" to "Bill Duck". -->
<line text="\Bill \Duck"/>
<line text="Bill Duck"/>
<line text="10 + 20 = 30"/>
<line text="You have a special New Year's sale discount waiting for you!"/>
<line text="Access at 2011-11-11 11:11:11 from localhost/127.0.0.1"/>
Expand Down

0 comments on commit 1287b1b

Please sign in to comment.