mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 02:35:37 +02:00
Fixed broken test.
This commit is contained in:
parent
7f79e5da86
commit
e4943b330a
1 changed files with 3 additions and 15 deletions
|
@ -29,34 +29,22 @@ public class CaseBreakQuickFixTest extends QuickFixTestCase {
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
public void testMiddleCase() throws Exception {
|
public void testSimpleCase() throws Exception {
|
||||||
loadcode(getAboveComment());
|
loadcode(getAboveComment());
|
||||||
String result = runQuickFixOneFile();
|
String result = runQuickFixOneFile();
|
||||||
assertContainedIn("break;\tcase 2:", result);
|
assertContainedIn("break;\tcase 2:", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
//void func() {
|
|
||||||
// int a;
|
|
||||||
// switch(a) {
|
|
||||||
// case 1:
|
|
||||||
// hello();
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
public void testLastCase() throws Exception {
|
|
||||||
loadcode(getAboveComment());
|
|
||||||
String result = runQuickFixOneFile();
|
|
||||||
assertContainedIn("break;\t}", result);
|
|
||||||
}
|
|
||||||
|
|
||||||
//void func() {
|
//void func() {
|
||||||
// int a;
|
// int a;
|
||||||
// switch(a) {
|
// switch(a) {
|
||||||
// case 1: {
|
// case 1: {
|
||||||
// hello();
|
// hello();
|
||||||
// }
|
// }
|
||||||
|
// default:
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
public void testLastCaseComp() throws Exception {
|
public void testCompositeStatementCase() throws Exception {
|
||||||
loadcode(getAboveComment());
|
loadcode(getAboveComment());
|
||||||
String result = runQuickFixOneFile();
|
String result = runQuickFixOneFile();
|
||||||
assertContainedIn("hello();\t\tbreak;", result);
|
assertContainedIn("hello();\t\tbreak;", result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue