0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

Eliminate conversion from tests too

This commit is contained in:
Alberto Lerner 2010-07-18 15:39:18 -04:00
parent 6f728ae260
commit 970ef45329
2 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ namespace JSTests {
private:
void check( const BSONObj &one, const BSONObj &two ) {
if ( one.woCompare( two ) != 0 ) {
static string fail = string( "Assertion failure expected " ) + string( one ) + ", got " + string( two );
static string fail = string( "Assertion failure expected " ) + one.toString() + ", got " + two.toString();
FAIL( fail.c_str() );
}
}

View File

@ -338,7 +338,7 @@ namespace QueryOptimizerTests {
public:
virtual ~DiffBase() {}
void run() {
FieldRangeSet frs( "", fromjson( obj() ) );
FieldRangeSet frs( "", fromjson( obj().toString() ) );
FieldRange ret = frs.range( "a" );
ret -= frs.range( "b" );
check( ret );