Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion btree_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "btree.h"

#include <algorithm>
#include <map>

#include "assert.h"
Expand Down Expand Up @@ -163,7 +164,7 @@ TEST_F(BTreeTest, RandomInsertUnique) {
std_map.insert(std::make_pair(42, -1));
values.push_back(42);
//~ printf("insert %d = %d\n", 42, -1);

for (int loops = 0; loops < 1000; ++loops) {
// Do an insert (alternating between new and old inserts)
int value;
Expand Down
2 changes: 1 addition & 1 deletion stupidunit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void Test::printErrors() const {
}

const string& Test::stupidunitError(size_t i) const {
ASSERT(0 <= i && i < errors_.size());
ASSERT(i < errors_.size());
return errors_[i];
}

Expand Down