Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simpoe sub object test

  • Loading branch information...
commit d21ef69f23b14d8b632eed698a98ca4aed89ef61 1 parent 540f479
@erh erh authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 jstests/sub1.js
View
14 jstests/sub1.js
@@ -0,0 +1,14 @@
+// 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 ) );
Please sign in to comment.
Something went wrong with that request. Please try again.