mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
15 lines
225 B
JavaScript
15 lines
225 B
JavaScript
|
|
||
|
|
||
|
|
||
|
o = new ObjectId();
|
||
|
assert( o.str );
|
||
|
|
||
|
a = new ObjectId( o.str );
|
||
|
assert.eq( o.str , a.str );
|
||
|
assert.eq( a.str , a.str.toString() )
|
||
|
|
||
|
b = ObjectId( o.str );
|
||
|
assert.eq( o.str , b.str );
|
||
|
assert.eq( b.str , b.str.toString() )
|
||
|
|