mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Partial fix for bug#57526 [CModelTests]
This commit is contained in:
parent
9e3714d448
commit
81b654bb3b
6 changed files with 10 additions and 46 deletions
|
@ -1,4 +1,8 @@
|
|||
2004-04-27 Hoda Amer
|
||||
2004-04-30 Hoda Amer
|
||||
Final fix for bug#57526 : [CModel] CModelElementsTest needs to test STRUCTURAL_PARSE mode as well
|
||||
Now All CModel tests run twice, once for quick mode and once for Structural mode (Except for IIncludeTests.java
|
||||
|
||||
2004-04-26 Hoda Amer
|
||||
Partial fix for bug#57526 : [CModel] CModelElementsTest needs to test STRUCTURAL_PARSE mode as well
|
||||
Added more tests for Structural Parse to the suit.
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ public class AllLanguageInterfaceTests {
|
|||
// each class being tested
|
||||
|
||||
suite.addTest(IIncludeTests.suite());
|
||||
suite.addTest(StructuralIncludeTests.suite());
|
||||
suite.addTest(IMacroTests.suite());
|
||||
suite.addTest(StructuralMacroTests.suite());
|
||||
suite.addTest(IStructureTests.suite());
|
||||
|
|
|
@ -191,7 +191,7 @@ public class ITemplateTests extends IntegratedCModelTest {
|
|||
//"TemplateContainer::fum"
|
||||
{"Bar"},
|
||||
//"TemplateParameter::scrum"
|
||||
{"Foo"},
|
||||
{"int"},
|
||||
//"nonVector::first"
|
||||
{"T"},
|
||||
//"IsGreaterThan"
|
||||
|
@ -231,7 +231,7 @@ public class ITemplateTests extends IntegratedCModelTest {
|
|||
"nonVector<T>",
|
||||
"ArrayOverlay<X, Y, int=16>",
|
||||
"fum<Bar>(int) : void",
|
||||
"scrum<Foo>(void) : void", // TODO: deduce the rules of () versus (void), compare below.
|
||||
"scrum<int>(void) : void", // TODO: deduce the rules of () versus (void), compare below.
|
||||
"nonVector<T>::first<T>() : const T&", // TODO: where should <T> be?
|
||||
// TODO: shouldn't signature indicate const function as well?
|
||||
"IsGreaterThan<X>(X, X) : bool",
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
package org.eclipse.cdt.core.model.tests;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
|
||||
/**
|
||||
* @author hamer
|
||||
*
|
||||
*/
|
||||
public class StructuralIncludeTests extends IIncludeTests {
|
||||
/**
|
||||
* @param string
|
||||
*/
|
||||
public StructuralIncludeTests(String string) {
|
||||
super( string );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @returns a test suite named after this class
|
||||
* containing all its public members named "test*"
|
||||
*/
|
||||
public static Test suite() {
|
||||
TestSuite suite= new TestSuite(StructuralIncludeTests.class);
|
||||
return suite;
|
||||
}
|
||||
|
||||
public void testGetIncludeName()
|
||||
{
|
||||
setStructuralParse(true);
|
||||
// super.testGetIncludeName();
|
||||
}
|
||||
|
||||
public void testIsStandard()
|
||||
{
|
||||
setStructuralParse(true);
|
||||
// super.testIsStandard();
|
||||
}
|
||||
}
|
|
@ -152,7 +152,7 @@ public class StructuralTemplateTests extends ITemplateTests {
|
|||
//"TemplateContainer::fum"
|
||||
{"Bar"},
|
||||
//"TemplateParameter::scrum"
|
||||
{"Foo"},
|
||||
{"int"},
|
||||
//"IsGreaterThan"
|
||||
{"X"},
|
||||
//"nonVector::first"
|
||||
|
@ -196,7 +196,7 @@ public class StructuralTemplateTests extends ITemplateTests {
|
|||
"nonVector<T>",
|
||||
"ArrayOverlay<X, Y, int=16>",
|
||||
"fum<Bar>(int) : void",
|
||||
"scrum<Foo>(void) : void", // TODO: deduce the rules of () versus (void), compare below.
|
||||
"scrum<int>(void) : void", // TODO: deduce the rules of () versus (void), compare below.
|
||||
// TODO: shouldn't signature indicate const function as well?
|
||||
"IsGreaterThan<X>(X, X) : bool",
|
||||
"first<T>() : const T&", // TODO: where should <T> be?
|
||||
|
|
|
@ -46,7 +46,7 @@ union ArrayOverlay {
|
|||
class TemplateContainer {
|
||||
// these are in an enclosing class
|
||||
template<class Bar> void fum(int i);
|
||||
template<class Foo> void scrum(void) {};
|
||||
template<int> void scrum(void) {};
|
||||
};
|
||||
|
||||
// TEMPLATE_FUNCTION
|
||||
|
|
Loading…
Add table
Reference in a new issue