summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-06-13 13:22:19 +0000
committerDamien F. Katz <damien@apache.org>2008-06-13 13:22:19 +0000
commitbe207027a8e2a8aea507c6f74c6ee7135f9b57e9 (patch)
tree53eedbde809b3d3cb768b992a84cda14d35cc108 /share/www
parent0a8edb4c3245c4e746304b6f5c6617f4fb55dafe (diff)
Tests that weren't checked in for a previous bug fix
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_tests.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index 086516da..cc770a9b 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -583,6 +583,14 @@ var tests = {
if (debug) debugger;
var numDocs = 500;
+
+ function makebigstring(power) {
+ var str = "a";
+ while(power-- > 0) {
+ str = str + str;
+ }
+ return str;
+ }
var designDoc = {
_id:"_design/test",
@@ -594,7 +602,9 @@ var tests = {
summate: {map:"function (doc) {emit(doc.integer, doc.integer)};",
reduce:"function (keys, values) { return sum(values); };"},
summate2: {map:"function (doc) {emit(doc.integer, doc.integer)};",
- reduce:"function (keys, values) { return sum(values); };"}
+ reduce:"function (keys, values) { return sum(values); };"},
+ huge_src_and_results: {map: "function(doc) { if (doc._id == \"1\") { emit(\"" + makebigstring(16) + "\", null) }}",
+ reduce:"function (keys, values) { return \"" + makebigstring(16) + "\"; };"}
}
}
T(db.save(designDoc).ok);