diff options
author | Damien F. Katz <damien@apache.org> | 2008-06-13 13:22:19 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-06-13 13:22:19 +0000 |
commit | be207027a8e2a8aea507c6f74c6ee7135f9b57e9 (patch) | |
tree | 53eedbde809b3d3cb768b992a84cda14d35cc108 /share/www/script/couch_tests.js | |
parent | 0a8edb4c3245c4e746304b6f5c6617f4fb55dafe (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/script/couch_tests.js')
-rw-r--r-- | share/www/script/couch_tests.js | 12 |
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); |