From 2568a1a496adf0d89511c06b46466746be8ff24c Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 28 Mar 2023 15:12:31 +0200 Subject: [PATCH] Added deletion tests for RbTree & IntervalTree in unittests. --- unittests/src/unittests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/src/unittests.cpp b/unittests/src/unittests.cpp index 232a2d0c..93cf2282 100644 --- a/unittests/src/unittests.cpp +++ b/unittests/src/unittests.cpp @@ -65,6 +65,7 @@ namespace { cerr << endl << endl; } + rb.remove( Interval( l(3), l(4) )); rb.write( "finalRbTree.gv" ); for ( Interval intv : rb.getElements() ) { @@ -100,6 +101,7 @@ namespace { cerr << endl << endl; } + itree.remove( IntvString( "a", l(3), l(4) )); itree.write( "finalIntervalTree.gv" ); for ( IntervalData intv : itree.getElements() ) {