Skip to content

Commit

Permalink
[test] remove outdated latestBREE project
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Nov 30, 2023
1 parent e640bfe commit 45f0152
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 3,432 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,8 @@

import junit.framework.Test;

/**
* This is almost a copy of the one in org.eclipse.jdt.tests.latestBREE.
* The other one also includes tests that are coded using the latest language
* features and API. However, the bundle is not yet setup to run with the build
* hence this is a temporary arrangement to keep the tests being run. The recommended
* strategy is to keep this one updated and when the time comes, move this over
* to the other bundle after synch-up of tests from both.
* @author jay
*/
public class TextBlockTest extends AbstractRegressionTest {

static {
// TESTS_NUMBERS = new int [] { 40 };
// TESTS_NAMES = new String[] { "testCompliances_13" };
}

public static Class<?> testClass() {
return TextBlockTest.class;
}
Expand Down Expand Up @@ -1617,4 +1603,77 @@ public void testBug578649_2() {
"123\b45",
getCompilerOptions());
}


/*
* positive - html code with indentation with empty lines
* output compared with String API
*/
public void test016b() {
String text = "<html>\n" +
" <body>\n" +
" <p>Hello, world</p>\n" +
" </body>\n" +
" </html>";
runConformTest(
new String[] {
"X.java",
"public class X {\n" +
" static String html = \"\"\"\n" +
text + "\\n" +
"\"\"\";\n" +
" public static void main(String[] args) {\n" +
" System.out.println(html);\n" +
" }\n" +
"}\n"
},
text.stripIndent().translateEscapes(),
null,
new String[] {"--enable-preview"});

}
/*
* positive - escaped '\', compare with String::translateEscapes
*/
public void test022() {
String text = "abc\\\\def";
runConformTest(
new String[] {
"X.java",
"public class X {\n" +
" public static String textb = \"\"\"\n" +
text +
"\"\"\";\n" +
" public static void main(String[] args) {\n" +
" System.out.print(textb);\n" +
" }\n" +
"}\n"
},
text.translateEscapes(),
null,
new String[] {"--enable-preview"});
}
/*
* positive - escaped """, compare output with
* String::translateEscapes
* String::stripIndent
*/
public void test023() {
String text = "abc\\\"\"\"def\" ";
runConformTest(
new String[] {
"X.java",
"public class X {\n" +
" public static String textb = \"\"\"\n" +
text +
"\"\"\";\n" +
" public static void main(String[] args) {\n" +
" System.out.println(textb);\n" +
" }\n" +
"}\n"
},
text.translateEscapes().stripIndent(),
null,
new String[] {"--enable-preview"});
}
}
15 changes: 0 additions & 15 deletions org.eclipse.jdt.tests.latestBREE/.classpath

This file was deleted.

28 changes: 0 additions & 28 deletions org.eclipse.jdt.tests.latestBREE/.project

This file was deleted.

This file was deleted.

115 changes: 0 additions & 115 deletions org.eclipse.jdt.tests.latestBREE/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

21 changes: 0 additions & 21 deletions org.eclipse.jdt.tests.latestBREE/META-INF/MANIFEST.MF

This file was deleted.

4 changes: 0 additions & 4 deletions org.eclipse.jdt.tests.latestBREE/build.properties

This file was deleted.

Loading

0 comments on commit 45f0152

Please sign in to comment.