12031204120512061207120812091210121112121213
TIntList a = new TIntLinkedList(); for ( int i = 1; i <= element_count; i++ ) { a.add( i ); } a.fill( 0xdeadbeef ); for ( int i = 0; i < element_count; i++ ) { assertEquals( 0xdeadbeef, a.get( i ) ); } }
12171218121912201221122212231224122512261227
TIntList a = new TIntLinkedList(); for ( int i = 1; i <= element_count; i++ ) { a.add( i ); } a.fill( 10, 15, 0xdeadbeef ); for ( int i = 0; i < 10; i++ ) { assertEquals( i + 1, a.get( i ) ); } for ( int i = 10; i < 15; i++ ) { assertEquals( 0xdeadbeef, a.get( i ) );
12281229123012311232123312341235123612371238
} for ( int i = 15; i < a.size(); i++ ) { assertEquals( i + 1, a.get( i ) ); } a.fill( 15, 25, 0xcafebabe ); assertEquals( 25, a.size() ); for ( int i = 0; i < 10; i++ ) { assertEquals( i + 1, a.get( i ) ); } for ( int i = 10; i < 15; i++ ) {
12201221122212231224122512261227122812291230
TIntList a = new TIntArrayList(); for ( int i = 1; i <= element_count; i++ ) { a.add( i ); } a.fill( 0xdeadbeef ); for ( int i = 0; i < element_count; i++ ) { assertEquals( 0xdeadbeef, a.get( i ) ); } }
12341235123612371238123912401241124212431244
TIntList a = new TIntArrayList(); for ( int i = 1; i <= element_count; i++ ) { a.add( i ); } a.fill( 10, 15, 0xdeadbeef ); for ( int i = 0; i < 10; i++ ) { assertEquals( i + 1, a.get( i ) ); } for ( int i = 10; i < 15; i++ ) { assertEquals( 0xdeadbeef, a.get( i ) );
12451246124712481249125012511252125312541255