Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 58256 Details for
Bug 172848
[formatter] code formatter produces syntax error (unary operator+ followed by prefix increment operator++)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression tests
patch_172848_tests.txt (text/plain), 5.87 KB, created by
Olivier Thomann
on 2007-02-05 09:51:05 EST
(
hide
)
Description:
Regression tests
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-02-05 09:51:05 EST
Size:
5.87 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java,v >retrieving revision 1.205 >diff -u -r1.205 FormatterRegressionTests.java >--- src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 26 Jan 2007 18:48:10 -0000 1.205 >+++ src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 5 Feb 2007 14:50:28 -0000 >@@ -54,8 +54,8 @@ > private long time; > > static { >-// TESTS_NUMBERS = new int[] { 649 }; >-// TESTS_RANGE = new int[] { 643, -1 }; >+// TESTS_NUMBERS = new int[] { 650 }; >+// TESTS_RANGE = new int[] { 650, -1 }; > } > public static Test suite() { > return buildModelTestSuite(FormatterRegressionTests.class); >@@ -9172,4 +9172,32 @@ > DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); > runTest(codeFormatter, "test649", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ > } >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 >+ public void test650() { >+ final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); >+ runTest(codeFormatter, "test650", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ >+ } >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 >+ public void test651() { >+ final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); >+ runTest(codeFormatter, "test651", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ >+ } >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 >+ public void test652() { >+ final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); >+ runTest(codeFormatter, "test652", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ >+ } >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 >+ public void test653() { >+ final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); >+ runTest(codeFormatter, "test653", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ >+ } > } >Index: workspace/Formatter/test651/A_in.java >=================================================================== >RCS file: workspace/Formatter/test651/A_in.java >diff -N workspace/Formatter/test651/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test651/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+public class Test >+{ >+ int i = 0; >+ int k = + --i; >+} >Index: workspace/Formatter/test650/A_in.java >=================================================================== >RCS file: workspace/Formatter/test650/A_in.java >diff -N workspace/Formatter/test650/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test650/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+public class Test >+{ >+ int i = 0; >+ int k = + ++i; >+} >Index: workspace/Formatter/test651/A_out.java >=================================================================== >RCS file: workspace/Formatter/test651/A_out.java >diff -N workspace/Formatter/test651/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test651/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+public class Test { >+ int i = 0; >+ int k = +--i; >+} >Index: workspace/Formatter/test650/A_out.java >=================================================================== >RCS file: workspace/Formatter/test650/A_out.java >diff -N workspace/Formatter/test650/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test650/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+public class Test { >+ int i = 0; >+ int k = + ++i; >+} >Index: workspace/Formatter/test653/A_in.java >=================================================================== >RCS file: workspace/Formatter/test653/A_in.java >diff -N workspace/Formatter/test653/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test653/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+public class Test >+{ >+ int i = 0; >+ int k = - ++i; >+} >Index: workspace/Formatter/test652/A_in.java >=================================================================== >RCS file: workspace/Formatter/test652/A_in.java >diff -N workspace/Formatter/test652/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test652/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,5 @@ >+public class Test >+{ >+ int i = 0; >+ int k = - --i; >+} >Index: workspace/Formatter/test653/A_out.java >=================================================================== >RCS file: workspace/Formatter/test653/A_out.java >diff -N workspace/Formatter/test653/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test653/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+public class Test { >+ int i = 0; >+ int k = -++i; >+} >Index: workspace/Formatter/test652/A_out.java >=================================================================== >RCS file: workspace/Formatter/test652/A_out.java >diff -N workspace/Formatter/test652/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test652/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+public class Test { >+ int i = 0; >+ int k = - --i; >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 172848
:
58255
| 58256