mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Fixed two broken tests.
This commit is contained in:
parent
57813d4bd5
commit
3991fd8658
1 changed files with 27 additions and 26 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2010, 2011 Tomasz Wesolowski and others
|
* Copyright (c) 2010, 2012 Tomasz Wesolowski and others
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -26,12 +26,13 @@ public class CaseBreakQuickFixTest extends QuickFixTestCase {
|
||||||
// case 1:
|
// case 1:
|
||||||
// hello();
|
// hello();
|
||||||
// case 2:
|
// case 2:
|
||||||
|
// break;
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
public void testMiddleCase() throws Exception {
|
public void testMiddleCase() throws Exception {
|
||||||
loadcode(getAboveComment());
|
loadcode(getAboveComment());
|
||||||
String result = runQuickFixOneFile();
|
String result = runQuickFixOneFile();
|
||||||
assertContainedIn("break; case 2:", result);
|
assertContainedIn("break;\tcase 2:", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
//void func() {
|
//void func() {
|
||||||
|
@ -44,7 +45,7 @@ public class CaseBreakQuickFixTest extends QuickFixTestCase {
|
||||||
public void testLastCase() throws Exception {
|
public void testLastCase() throws Exception {
|
||||||
loadcode(getAboveComment());
|
loadcode(getAboveComment());
|
||||||
String result = runQuickFixOneFile();
|
String result = runQuickFixOneFile();
|
||||||
assertContainedIn("break; }", result);
|
assertContainedIn("break;\t}", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
//void func() {
|
//void func() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue