mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +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;
|
||||
// }
|
||||
//}
|
||||
public void testMiddleCase() throws Exception {
|
||||
public void testSimpleCase() throws Exception {
|
||||
loadcode(getAboveComment());
|
||||
String result = runQuickFixOneFile();
|
||||
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() {
|
||||
// int a;
|
||||
// switch(a) {
|
||||
// case 1: {
|
||||
// hello();
|
||||
// }
|
||||
// default:
|
||||
// }
|
||||
//}
|
||||
public void testLastCaseComp() throws Exception {
|
||||
public void testCompositeStatementCase() throws Exception {
|
||||
loadcode(getAboveComment());
|
||||
String result = runQuickFixOneFile();
|
||||
assertContainedIn("hello();\t\tbreak;", result);
|
||||
|
|
Loading…
Add table
Reference in a new issue