Permalink
Browse files

just a very simple test

  • Loading branch information...
1 parent 643cfc0 commit 3fc2ac79b59c58a8912bf95a6a4c29f82390b9bd @erh erh committed Jun 24, 2009
Showing with 11 additions and 0 deletions.
  1. +11 −0 jstests/basic8.js
View
11 jstests/basic8.js
@@ -0,0 +1,11 @@
+
+t = db.basic8;
+t.drop();
+
+t.save( { a : 1 } );
+o = t.findOne();
+o.b = 2;
+t.save( o );
+
+assert.eq( 1 , t.find().count() , "A" );
+assert.eq( 2 , t.findOne().b , "B" );

0 comments on commit 3fc2ac7

Please sign in to comment.