summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-07-17 14:33:17 -0400
committerAlberto Lerner <alerner@10gen.com>2010-07-17 14:33:17 -0400
commitb7c9a9fc576758ef6e7095ec0fbd2def0deb9b5b (patch)
tree2b995b28c21ea4966a16e81ae4e785e8ff16d789 /dbtests
parentf8489f4b0cd04756fae3786975441fb4aa8a70d9 (diff)
downloadmongo-b7c9a9fc576758ef6e7095ec0fbd2def0deb9b5b.tar.gz
SERVER-1270 Prep for hooking StringData
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/jstests.cpp2
-rw-r--r--dbtests/queryoptimizertests.cpp2
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 );