summaryrefslogtreecommitdiff
path: root/jstests/tool/tsv1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-07-05 00:47:04 -0400
committerEliot Horowitz <eliot@10gen.com>2011-07-05 00:47:04 -0400
commit1c44a0e5b55ef69196fe46b96a7a583292983501 (patch)
tree0a4ea289537adec6a0bee770c4600cfe918df70c /jstests/tool/tsv1.js
parent91efa3fcd9881484d4bb5da14a307c0f06d4c4d5 (diff)
downloadmongo-1c44a0e5b55ef69196fe46b96a7a583292983501.tar.gz
test cleaning
Diffstat (limited to 'jstests/tool/tsv1.js')
-rw-r--r--jstests/tool/tsv1.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/tool/tsv1.js b/jstests/tool/tsv1.js
index 2f3d4980051..1b0ddbb7c9e 100644
--- a/jstests/tool/tsv1.js
+++ b/jstests/tool/tsv1.js
@@ -12,8 +12,9 @@ assert.soon( "2 == c.count()" , "restore 2" );
a = c.find().sort( { a : 1 } ).toArray();
delete a[0]._id
delete a[1]._id
-assert.eq( tojson( { a : "a" , b : "b" , c : "c" , d: "d", e: "e"} ) , tojson( a[1] ) , "tsv parse 1" );
-assert.eq( tojson( base ) , tojson(a[0]) , "tsv parse 0" )
+
+assert.eq( { a : "a" , b : "b" , c : "c" , d: "d", e: "e"} , a[1] , "tsv parse 1" );
+assert.eq( base , a[0] , "tsv parse 0" )
c.drop()
assert.eq( 0 , c.count() , "after drop 2" )
@@ -24,7 +25,7 @@ assert.eq( 1 , c.count() , "after restore 2" );
x = c.findOne()
delete x._id;
-assert.eq( tojson( base ) , tojson(x) , "tsv parse 2" )
+assert.eq( base , x , "tsv parse 2" )