Permalink
Browse files

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
  • Loading branch information...
1 parent 0a8edb4 commit be207027a8e2a8aea507c6f74c6ee7135f9b57e9 Damien F. Katz committed Jun 13, 2008
Showing with 11 additions and 1 deletion.
  1. +11 −1 share/www/script/couch_tests.js
View
12 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);

0 comments on commit be20702

Please sign in to comment.