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>
15 lines
177 B
JavaScript
15 lines
177 B
JavaScript
// sub1.js
|
|
|
|
t = db.sub1;
|
|
t.drop();
|
|
|
|
x = { a : 1 , b : { c : { d : 2 } } }
|
|
|
|
t.save( x );
|
|
|
|
y = t.findOne();
|
|
|
|
assert.eq( 1 , y.a );
|
|
assert.eq( 2 , y.b.c.d );
|
|
print( tojson( y ) );
|