From b0a8ce34c118b1e0ef3e1e080cb70d3c9b91902f Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 29 Jul 2008 16:40:41 +0000 Subject: Test changes I forgot to check in earlier. Contains a formatting change and a bug fix in the test itself. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@680763 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 58 +++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 23 deletions(-) (limited to 'share') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 852f9cfe..8b0cb398 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -290,6 +290,10 @@ var tests = { result = db.query(map, reduce, {startkey: 4, endkey: 6}); T(result.rows[0].value == 15); + result = db.query(map, reduce, {count: 3}); + console.log(result.rows[0].value); + T(result.rows[0].value == 6); + for(var i=1; i