From 3b27d154b2f36ff7a7514a6b0dbd29dd3715193b Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 16 Dec 2008 21:19:03 +0000 Subject: fix COUCHDB-177. thanks Paul Carey and Paul Davis git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@727156 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'share/www/script/couch_tests.js') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 78b0c302..0ad6eee0 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -1344,6 +1344,15 @@ var tests = { } T(db.save(designDoc).ok); + // Test that missing keys work too + var keys = [101,30,15,37,50] + var reduce = db.view("test/summate",{group:true},keys).rows; + T(reduce.length == keys.length-1); // 101 is missing + for(var i=0; i