summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-11-22 22:05:46 -0500
committerEliot Horowitz <eliot@10gen.com>2009-11-22 22:05:46 -0500
commit7eb8fab97ded16e1bd83db86e9a54f1d10cf9ad4 (patch)
treec4829d3adb6465ffaea7db46ad0ced901a1f8162 /jstests
parentbed8ba812bd4280f405d4c66eebfee03991990ba (diff)
downloadmongo-7eb8fab97ded16e1bd83db86e9a54f1d10cf9ad4.tar.gz
added bsonsize to bson objects in js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/objid5.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/objid5.js b/jstests/objid5.js
new file mode 100644
index 00000000000..10ebe9d5ff8
--- /dev/null
+++ b/jstests/objid5.js
@@ -0,0 +1,6 @@
+
+t = db.objid5;
+t.drop();
+
+t.save( { _id : 5.5 } );
+assert.eq( 18 , t.findOne().bsonsize() , "A" );