mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
fix ParserSymbolTableTests.testUsingDeclaration_2.
It was failing sometimes due to an order dependancy
This commit is contained in:
parent
2eb7c8d6d8
commit
cde4b34929
2 changed files with 11 additions and 8 deletions
|
@ -1,3 +1,6 @@
|
|||
2004-02-19 Andrew Niefer
|
||||
remove order dependancy in ParserSymbolTableTests.testUsingDeclaration_2
|
||||
|
||||
2004-02-18 Andrew Niefer
|
||||
modify ParserSymbolTableTests.testUsingDeclaration_2
|
||||
|
||||
|
|
|
@ -1177,17 +1177,17 @@ public class ParserSymbolTableTest extends TestCase {
|
|||
|
||||
using = bar.addUsingDeclaration( "f", A );
|
||||
|
||||
Iterator iter = using.getReferencedSymbols().iterator();
|
||||
assertEquals( iter.next(), f1 );
|
||||
assertEquals( iter.next(), f2 );
|
||||
assertFalse( iter.hasNext() );
|
||||
|
||||
iter = using.getDeclaredSymbols().iterator();
|
||||
iter.next();
|
||||
List list = using.getReferencedSymbols();
|
||||
assertTrue( list.contains( f1 ) );
|
||||
assertTrue( list.contains( f2 ) );
|
||||
assertEquals( list.size(), 2 );
|
||||
|
||||
int index = list.indexOf( f2 );
|
||||
list = using.getDeclaredSymbols();
|
||||
|
||||
look = bar.unqualifiedFunctionLookup( "f", paramList );
|
||||
assertTrue( look != null );
|
||||
assertEquals( look, iter.next() );
|
||||
assertEquals( look, list.get( index ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue