Files
mongo/jstests/core/sub1.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

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 ) );