summaryrefslogtreecommitdiff
path: root/jstests/core/sub1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/sub1.js')
-rw-r--r--jstests/core/sub1.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/jstests/core/sub1.js b/jstests/core/sub1.js
index 324b21b75e8..d42677f3266 100644
--- a/jstests/core/sub1.js
+++ b/jstests/core/sub1.js
@@ -3,12 +3,15 @@
t = db.sub1;
t.drop();
-x = { a : 1 , b : { c : { d : 2 } } };
+x = {
+ a: 1,
+ b: {c: {d: 2}}
+};
-t.save( x );
+t.save(x);
y = t.findOne();
-assert.eq( 1 , y.a );
-assert.eq( 2 , y.b.c.d );
-print( tojson( y ) );
+assert.eq(1, y.a);
+assert.eq(2, y.b.c.d);
+print(tojson(y));