Added deletion tests for RbTree & IntervalTree in unittests.
This commit is contained in:
parent
e22e7f7476
commit
2568a1a496
|
@ -65,6 +65,7 @@ namespace {
|
||||||
cerr << endl << endl;
|
cerr << endl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rb.remove( Interval( l(3), l(4) ));
|
||||||
rb.write( "finalRbTree.gv" );
|
rb.write( "finalRbTree.gv" );
|
||||||
|
|
||||||
for ( Interval intv : rb.getElements() ) {
|
for ( Interval intv : rb.getElements() ) {
|
||||||
|
@ -100,6 +101,7 @@ namespace {
|
||||||
cerr << endl << endl;
|
cerr << endl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itree.remove( IntvString( "a", l(3), l(4) ));
|
||||||
itree.write( "finalIntervalTree.gv" );
|
itree.write( "finalIntervalTree.gv" );
|
||||||
|
|
||||||
for ( IntervalData<string> intv : itree.getElements() ) {
|
for ( IntervalData<string> intv : itree.getElements() ) {
|
||||||
|
|
Loading…
Reference in New Issue