summaryrefslogtreecommitdiff
path: root/jstests/mr_outreduce2.js
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-03-25 15:29:54 -0400
committerScott Hernandez <scotthernandez@gmail.com>2014-03-25 18:42:15 -0400
commit7444a98bef3d51bb4b1e30ef7b438e18ee031046 (patch)
tree5f28292c2ff4fa81ef1dd25bcc51a93daea2d9ed /jstests/mr_outreduce2.js
parent2c324c51b079af4df7256df9fdfd313d355d2e8d (diff)
downloadmongo-7444a98bef3d51bb4b1e30ef7b438e18ee031046.tar.gz
SERVER-13297: remove dead jstests
(cherry picked from commit 57f97f213346b7a0305c81fd70894a77ca35a886)
Diffstat (limited to 'jstests/mr_outreduce2.js')
-rw-r--r--jstests/mr_outreduce2.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/jstests/mr_outreduce2.js b/jstests/mr_outreduce2.js
deleted file mode 100644
index fc273638577..00000000000
--- a/jstests/mr_outreduce2.js
+++ /dev/null
@@ -1,27 +0,0 @@
-
-normal = "mr_outreduce2"
-out = normal + "_out"
-
-t = db[normal]
-t.drop();
-
-db[out].drop()
-
-t.insert( { _id : 1 , x : 1 } )
-t.insert( { _id : 2 , x : 1 } )
-t.insert( { _id : 3 , x : 2 } )
-
-m = function(){ emit( this.x , 1 ); }
-r = function(k,v){ return Array.sum( v ); }
-
-res = t.mapReduce( m , r , { out : { reduce : out } , query : { _id : { $gt : 0 } } } )
-
-assert.eq( 2 , db[out].findOne( { _id : 1 } ).value , "A1" )
-assert.eq( 1 , db[out].findOne( { _id : 2 } ).value , "A2" )
-
-
-t.insert( { _id : 4 , x : 2 } )
-res = t.mapReduce( m , r , { out : { reduce : out } , query : { _id : { $gt : 3 } } , finalize : null } )
-
-assert.eq( 2 , db[out].findOne( { _id : 1 } ).value , "B1" )
-assert.eq( 2 , db[out].findOne( { _id : 2 } ).value , "B2" )