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:
parent
6f728ae260
commit
970ef45329
@ -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() );
|
||||
}
|
||||
}
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user