You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2008/06/13 15:22:19 UTC
svn commit: r667523 -
/incubator/couchdb/trunk/share/www/script/couch_tests.js
Author: damien
Date: Fri Jun 13 06:22:19 2008
New Revision: 667523
URL: http://svn.apache.org/viewvc?rev=667523&view=rev
Log:
Tests that weren't checked in for a previous bug fix
Modified:
incubator/couchdb/trunk/share/www/script/couch_tests.js
Modified: incubator/couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch_tests.js?rev=667523&r1=667522&r2=667523&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] Fri Jun 13 06:22:19 2008
@@ -583,6 +583,14 @@
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 @@
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);