From be207027a8e2a8aea507c6f74c6ee7135f9b57e9 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Fri, 13 Jun 2008 13:22:19 +0000 Subject: 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 --- share/www/script/couch_tests.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'share/www') 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); -- cgit v1.2.3