diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-22 22:05:46 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-22 22:05:46 -0500 |
commit | 7eb8fab97ded16e1bd83db86e9a54f1d10cf9ad4 (patch) | |
tree | c4829d3adb6465ffaea7db46ad0ced901a1f8162 /jstests | |
parent | bed8ba812bd4280f405d4c66eebfee03991990ba (diff) | |
download | mongo-7eb8fab97ded16e1bd83db86e9a54f1d10cf9ad4.tar.gz |
added bsonsize to bson objects in js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/objid5.js | 6 |
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" ); |