summaryrefslogtreecommitdiff
path: root/jstests/basic5.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-26 23:28:26 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-26 23:28:26 -0500
commitbc38646deb39f5d5af3cd33e34f49b596e837401 (patch)
tree33affd5a1fedb7f8cfad044d92c262d12158ff8b /jstests/basic5.js
parentf235a0f1b1a8ad6fbbce046205d4b78e60bc1df8 (diff)
downloadmongo-bc38646deb39f5d5af3cd33e34f49b596e837401.tar.gz
imported tests
Diffstat (limited to 'jstests/basic5.js')
-rw-r--r--jstests/basic5.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/basic5.js b/jstests/basic5.js
new file mode 100644
index 00000000000..e2c742ad2a8
--- /dev/null
+++ b/jstests/basic5.js
@@ -0,0 +1,7 @@
+db = connect( "test" );
+t = db.getCollection( "basic5" );
+t.drop();
+
+t.save( { a : 1 , b : [ 1 , 2 , 3 ] } );
+assert.eq( 3 , t.findOne().b.length );
+