1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Update completion tests

This commit is contained in:
Anton Leherbauer 2007-01-30 13:38:45 +00:00
parent 85b13d4c52
commit 2ebf9e97c2
4 changed files with 17 additions and 37 deletions

View file

@ -27,27 +27,19 @@ public class CompletionTest_MacroRef_NoPrefix extends CompletionProposalsBaseTe
private final String headerFileFullPath ="resources/contentassist/" + headerFileName; private final String headerFileFullPath ="resources/contentassist/" + headerFileName;
private final String expectedPrefix = ""; private final String expectedPrefix = "";
private final String[] expectedResults = { private final String[] expectedResults = {
// missing results: "AMacro(x)",
"aMacro(x)", "DEBUG",
"Debug", "XMacro(x, y)",
"xMacro(x,y)" "__DATE__",
/* superfluous results: "__FILE__",
AStruct "__LINE__",
XStruct "__TIME__"
aClass
aNamespace
anEnumeration
anotherClass
xEnumeration
xNamespace
xOtherClass
*/
}; };
public CompletionTest_MacroRef_NoPrefix(String name) { public CompletionTest_MacroRef_NoPrefix(String name) {
super(name); super(name);
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=171708 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=172158
setExpectFailure(171708); setExpectFailure(172158);
} }
public static Test suite() { public static Test suite() {

View file

@ -28,13 +28,13 @@ public class CompletionTest_MacroRef_Prefix extends CompletionProposalsBaseTest
private final String expectedPrefix = "D"; private final String expectedPrefix = "D";
private final String[] expectedResults = { private final String[] expectedResults = {
// missing result: // missing result:
"Debug" "DEBUG"
}; };
public CompletionTest_MacroRef_Prefix(String name) { public CompletionTest_MacroRef_Prefix(String name) {
super(name); super(name);
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=171708 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=172158
setExpectFailure(171708); setExpectFailure(172158);
} }
public static Test suite() { public static Test suite() {

View file

@ -58,8 +58,8 @@ public class CompletionTest_SingleName_Method_NoPrefix extends CompletionPropos
public CompletionTest_SingleName_Method_NoPrefix(String name) { public CompletionTest_SingleName_Method_NoPrefix(String name) {
super(name); super(name);
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860 // operators should not be proposed
setExpectFailure(169860); setExpectFailure(77777);
} }
public static Test suite() { public static Test suite() {

View file

@ -31,7 +31,7 @@ public class CompletionTest_SingleName_NoPrefix extends CompletionProposalsBase
"xVariable : int", "xVariable : int",
"aFunction(void) bool", "aFunction(void) bool",
"anotherFunction(void) void", "anotherFunction(void) void",
"foo(int) void", "foo(int x) void",
"xFunction(void) bool", "xFunction(void) bool",
"xOtherFunction(void) void", "xOtherFunction(void) void",
"aClass", "aClass",
@ -49,24 +49,12 @@ public class CompletionTest_SingleName_NoPrefix extends CompletionProposalsBase
"xFirstEnum", "xFirstEnum",
"xSecondEnum", "xSecondEnum",
"xThirdEnum", "xThirdEnum",
// missing: "y : int"
"__cplusplus", // note: macros are omitted intentionally
"__DATE__",
"__FILE__",
"__LINE__",
"__STDC__",
"__STDC_HOSTED__",
"__STDC_VERSION__",
"__TIME__",
"AMacro(x)",
"DEBUG",
"XMacro(x,y)"
}; };
public CompletionTest_SingleName_NoPrefix(String name) { public CompletionTest_SingleName_NoPrefix(String name) {
super(name); super(name);
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=171708
setExpectFailure(171708);
} }
public static Test suite() { public static Test suite() {