diff options
author | Dwight Merriman <dwight@10gen.com> | 2010-04-24 18:25:58 -0400 |
---|---|---|
committer | Dwight Merriman <dwight@10gen.com> | 2010-04-24 18:25:58 -0400 |
commit | c4bd46504276f7b7da07b8ab2bc1c5685004a29d (patch) | |
tree | bdf788366d6b91b2a979829421dbdfed61f8a3a6 /dbtests/jstests.cpp | |
parent | 96b58977fcc6cad83a79589162843659221ea1ab (diff) | |
download | mongo-c4bd46504276f7b7da07b8ab2bc1c5685004a29d.tar.gz |
towards 3
Diffstat (limited to 'dbtests/jstests.cpp')
-rw-r--r-- | dbtests/jstests.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dbtests/jstests.cpp b/dbtests/jstests.cpp index 454dcdc1d07..0ecfd4297ad 100644 --- a/dbtests/jstests.cpp +++ b/dbtests/jstests.cpp @@ -531,7 +531,12 @@ namespace JSTests { ASSERT( s->exec( "printjson( a ); b = {b:a.a}", "foo", false, true, false ) ); out = s->getObject( "b" ); ASSERT_EQUALS( mongo::NumberLong, out.firstElement().type() ); - ASSERT_EQUALS( val, out.firstElement().numberLong() ); + if( val != out.firstElement().numberLong() ) { + cout << val << endl; + cout << out.firstElement().numberLong() << endl; + cout << out.toString() << endl; + ASSERT_EQUALS( val, out.firstElement().numberLong() ); + } ASSERT( s->exec( "c = {c:a.a.toString()}", "foo", false, true, false ) ); out = s->getObject( "c" ); |