From fbabdb19583198cf77add0b9cff354d70c45ff5a Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 9 Jan 2009 19:03:22 +0000 Subject: fixed _all_docs view to use the correct PassedEndFun for binary docid sorting git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@733116 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 9 ++++++++- 1 file changed, 8 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 dbc70325..20d8733f 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -216,6 +216,13 @@ var tests = { // and on the deleted one, no doc T(all_seq.rows[2].value.deleted); T(!all_seq.rows[2].doc); + + // test the all docs collates sanely + db.save({_id: "Z", foo: "Z"}); + db.save({_id: "a", foo: "a"}); + + var rows = db.allDocs({startkey: "Z", endkey: "Z"}).rows; + T(rows.length == 1); }, // Do some edit conflict detection tests @@ -1166,7 +1173,7 @@ var tests = { T(db.bulkSave(makeDocs(1, numDocs + 1)).ok); // test that the _all_docs view returns correctly with keys - var results = db.allDocs({startkey:"_design%2F", endkey:"_design%2FZZZ"}); + var results = db.allDocs({startkey:"_design", endkey:"_design0"}); T(results.rows.length == 1); for (var loop = 0; loop < 2; loop++) { -- cgit v1.2.3