0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/objid7.js
2010-06-23 10:02:16 -04:00

14 lines
341 B
JavaScript

a = new ObjectId( "4c1a478603eba73620000000" )
b = new ObjectId( "4c1a478603eba73620000000" )
c = new ObjectId();
assert.eq( a.toString() , b.toString() , "A" )
assert.eq( a.toString() , "4c1a478603eba73620000000" , "B" );
assert( a.equals( b ) , "C" )
assert.neq( a.toString() , c.toString() , "D" );
assert( ! a.equals( c ) , "E" );