Skip to content

Commit

Permalink
Test extended
Browse files Browse the repository at this point in the history
  • Loading branch information
romz-pl committed Oct 28, 2017
1 parent 7cab33f commit ea309f7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ void Check()
throw std::runtime_error( "Insert Error" );
}
}

// if( bPlusTree.count() != stlMap.size() )
// {
// throw std::runtime_error( "Insert Error: Not equal size" );
// }
if( bPlusTree.count() != stlMap.size() )
{
throw std::runtime_error( "Insert Error: Not equal size" );
}

// Make key randomly distributed other then inserted
std::shuffle( key.begin(), key.end(), std::mt19937{ std::random_device{}() } );
Expand All @@ -86,11 +85,10 @@ void Check()
bPlusTree.remove( k );
stlMap.erase( k );
}

// if( bPlusTree.count() != stlMap.size() )
// {
// throw std::runtime_error( "Delete Error: Not equal size" );
// }
if( bPlusTree.count() != stlMap.size() )
{
throw std::runtime_error( "Delete Error: Not equal size" );
}
}

//
Expand Down

0 comments on commit ea309f7

Please sign in to comment.