diff options
author | Markus Schorn | 2007-02-26 10:25:28 +0000 |
---|---|---|
committer | Markus Schorn | 2007-02-26 10:25:28 +0000 |
commit | 25d77f4ed2d89e6df1caba2331d52ef9c687cf08 (patch) | |
tree | 4355f849d3ed2871261ab0f1372cf9f0de2dfd9a | |
parent | 94a8afb3a35d23d41486af1d3348615fae86d242 (diff) | |
download | org.eclipse.cdt-25d77f4ed2d89e6df1caba2331d52ef9c687cf08.tar.gz org.eclipse.cdt-25d77f4ed2d89e6df1caba2331d52ef9c687cf08.tar.xz org.eclipse.cdt-25d77f4ed2d89e6df1caba2331d52ef9c687cf08.zip |
Updates a test-case to expect case-insensitive completion proposals.
-rw-r--r-- | core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index ea4aebfff93..74b9f1434ee 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -14,6 +14,7 @@ */ package org.eclipse.cdt.core.parser.tests.ast2; +import java.util.HashSet; import java.util.Iterator; import org.eclipse.cdt.core.dom.ast.ASTSignatureUtil; @@ -2169,8 +2170,21 @@ public class AST2CPPTests extends AST2BaseTest { tu.accept(col); IASTName name = col.getName(11); + assertEquals("a", name.toString()); IBinding[] bs = CPPSemantics.findBindingsForContentAssist(name, true); - assertEquals(4, bs.length); + + // check the result + HashSet result= new HashSet(); + for (int i = 0; i < bs.length; i++) { + IBinding binding = bs[i]; + result.add(binding.getName()); + } + assertTrue(result.contains("a1")); + assertTrue(result.contains("a2")); + assertTrue(result.contains("a3")); + assertTrue(result.contains("a4")); + assertTrue(result.contains("A")); + assertEquals(5, bs.length); } public void testIsStatic() throws Exception { |