mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
Bug 495095 - Fix incorrect tests
Change-Id: I90e211b9bbf55245bc15bc6239555267e8d88f92
This commit is contained in:
parent
0b156e4ce4
commit
95eee92c4c
2 changed files with 3 additions and 3 deletions
|
@ -91,8 +91,7 @@ public class CPPParameterGuessingTests extends AbstractContentAssistTest {
|
||||||
// tFunc<aClass> (
|
// tFunc<aClass> (
|
||||||
public void testTemplateFunction() throws Exception {
|
public void testTemplateFunction() throws Exception {
|
||||||
Map<String, String[][]> resultsMap = new HashMap<>();
|
Map<String, String[][]> resultsMap = new HashMap<>();
|
||||||
resultsMap.put("tFunc<aClass> (x, y)", new String[][] { { "x" },
|
resultsMap.put("tFunc<aClass> (x, y)", new String[][] { { "aTypeObj" }, { "bTypeObj" } });
|
||||||
{ "y" } });
|
|
||||||
assertParametersGuesses(resultsMap);
|
assertParametersGuesses(resultsMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +134,7 @@ public class CPPParameterGuessingTests extends AbstractContentAssistTest {
|
||||||
Map<String, String[][]> resultsMap = new HashMap<>();
|
Map<String, String[][]> resultsMap = new HashMap<>();
|
||||||
resultsMap.put("aMethod(c)", new String[][] { { "charX", "charY", "inCall" } });
|
resultsMap.put("aMethod(c)", new String[][] { { "charX", "charY", "inCall" } });
|
||||||
resultsMap.put("aMethod(c, x)", new String[][] {
|
resultsMap.put("aMethod(c, x)", new String[][] {
|
||||||
{ "charX", "charY"}, { "inCall" } });
|
{ "charX", "charY", "inCall"}, { "charX", "charY", "inCall" } });
|
||||||
assertParametersGuesses(resultsMap);
|
assertParametersGuesses(resultsMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class CParameterGuessingTests extends AbstractContentAssistTest {
|
||||||
|
|
||||||
// void foo(){
|
// void foo(){
|
||||||
// aStruct ax;
|
// aStruct ax;
|
||||||
|
// int x;
|
||||||
// ov
|
// ov
|
||||||
public void testMultipleFunctions() throws Exception {
|
public void testMultipleFunctions() throws Exception {
|
||||||
Map<String, String[][]> resultsMap = new HashMap<>();
|
Map<String, String[][]> resultsMap = new HashMap<>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue