diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-03-11 17:29:05 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-03-11 17:29:05 -0400 |
commit | 5ad411b38b020b209218017448426e9dc72382b5 (patch) | |
tree | fd265bc5b85dfb1b76978e469534c374700c4365 /jstests/aggregation/unwind.js | |
parent | ceb58fee5495ce2b45f6aaba7aa3da76b9cdf8d9 (diff) | |
download | mongo-5ad411b38b020b209218017448426e9dc72382b5.tar.gz |
Revert "SERVER-8008: $unwind of scalar should return 1 doc with scalar"
This reverts commit 25feddadeef43fb0668350b40282fcdfbb1f2296.
Diffstat (limited to 'jstests/aggregation/unwind.js')
-rw-r--r-- | jstests/aggregation/unwind.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/jstests/aggregation/unwind.js b/jstests/aggregation/unwind.js deleted file mode 100644 index 5271317fa3e..00000000000 --- a/jstests/aggregation/unwind.js +++ /dev/null @@ -1,13 +0,0 @@ -t = db.agg_unwind; -t.drop(); - -t.insert( {_id : 1 } ); -t.insert( {_id : 2, x : null } ); -t.insert( {_id : 3, x : [] } ); -t.insert( {_id : 4, x : [1, 2] } ); -t.insert( {_id : 5, x : [3] } ); -t.insert( {_id : 6, x : 4 } ); - -var res = t.aggregate( [ { $unwind : "$x" }, { $sort : { _id : 1 } } ] ).toArray(); -assert.eq(4, res.length); -assert.eq([1,2,3,4],res.map(function(z){ return z.x; })); |