summaryrefslogtreecommitdiff
path: root/jstests/index10.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-01-25 10:06:06 -0800
committerAaron <aaron@10gen.com>2010-01-25 10:06:06 -0800
commita85db023f9a01bcab68386fbe0cf32ccc196d785 (patch)
tree1b57c1c15c14c7168be49add9fe7340ed8a08c79 /jstests/index10.js
parent33bd6d1fe1fff2d9b457662e41e217ceee4d174b (diff)
downloadmongo-a85db023f9a01bcab68386fbe0cf32ccc196d785.tar.gz
SERVER-357 NumberLong converts to number (double) implicitly when doing operations
Diffstat (limited to 'jstests/index10.js')
-rw-r--r--jstests/index10.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/index10.js b/jstests/index10.js
index 105fcc1b64f..7463dd5e21f 100644
--- a/jstests/index10.js
+++ b/jstests/index10.js
@@ -16,7 +16,12 @@ t.ensureIndex( {i:1}, true );
assert.eq( 1, db.system.indexes.count( {ns:"test.jstests_index10" } ) ); // only id index
// t.dropIndexes();
+ts = t.totalIndexSize();
t.ensureIndex( {i:1}, [ true, true ] );
+ts2 = t.totalIndexSize();
+
+assert.eq( ts * 2, ts2, "totalIndexSize fail" );
+
assert.eq( 3, t.count() );
assert.eq( 1, t.count( {i:1} ) );