From 970ef45329bcfc2fa8ebd8b00ef0dfd8bd00244c Mon Sep 17 00:00:00 2001 From: Alberto Lerner Date: Sun, 18 Jul 2010 15:39:18 -0400 Subject: [PATCH] Eliminate conversion from tests too --- dbtests/jstests.cpp | 2 +- dbtests/queryoptimizertests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbtests/jstests.cpp b/dbtests/jstests.cpp index 2749abf70ed..81b9673daad 100644 --- a/dbtests/jstests.cpp +++ b/dbtests/jstests.cpp @@ -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() ); } } diff --git a/dbtests/queryoptimizertests.cpp b/dbtests/queryoptimizertests.cpp index 93719041b35..46639a1960a 100644 --- a/dbtests/queryoptimizertests.cpp +++ b/dbtests/queryoptimizertests.cpp @@ -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 );