diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-01-09 19:03:22 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-01-09 19:03:22 +0000 |
commit | fbabdb19583198cf77add0b9cff354d70c45ff5a (patch) | |
tree | ba576fc81dab8e98a550d25af621b045d3a989ef /share/www/script/couch_tests.js | |
parent | e19b5124101f2ff5aa755df99b0fcbd0923aa01f (diff) |
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
Diffstat (limited to 'share/www/script/couch_tests.js')
-rw-r--r-- | share/www/script/couch_tests.js | 9 |
1 files changed, 8 insertions, 1 deletions
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++) { |