mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06: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
|
2004-02-18 Andrew Niefer
|
||||||
modify ParserSymbolTableTests.testUsingDeclaration_2
|
modify ParserSymbolTableTests.testUsingDeclaration_2
|
||||||
|
|
||||||
|
|
|
@ -1177,17 +1177,17 @@ public class ParserSymbolTableTest extends TestCase {
|
||||||
|
|
||||||
using = bar.addUsingDeclaration( "f", A );
|
using = bar.addUsingDeclaration( "f", A );
|
||||||
|
|
||||||
Iterator iter = using.getReferencedSymbols().iterator();
|
List list = using.getReferencedSymbols();
|
||||||
assertEquals( iter.next(), f1 );
|
assertTrue( list.contains( f1 ) );
|
||||||
assertEquals( iter.next(), f2 );
|
assertTrue( list.contains( f2 ) );
|
||||||
assertFalse( iter.hasNext() );
|
assertEquals( list.size(), 2 );
|
||||||
|
|
||||||
iter = using.getDeclaredSymbols().iterator();
|
int index = list.indexOf( f2 );
|
||||||
iter.next();
|
list = using.getDeclaredSymbols();
|
||||||
|
|
||||||
look = bar.unqualifiedFunctionLookup( "f", paramList );
|
look = bar.unqualifiedFunctionLookup( "f", paramList );
|
||||||
assertTrue( look != null );
|
assertTrue( look != null );
|
||||||
assertEquals( look, iter.next() );
|
assertEquals( look, list.get( index ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue