Files
mongo/jstests/core/objid7.js
Siyuan Zhou 3660343e0b SERVER-12127 migrate js tests to jscore suite when not related to writes
Migrate js tests starting from j-z.
Include SERVER-12920 Update use_power_of_2.js

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
2014-03-03 22:54:10 -05:00

14 lines
355 B
JavaScript

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