You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/05/19 22:33:29 UTC
svn commit: r657963 -
/incubator/couchdb/trunk/share/www/script/couch_tests.js
Author: jan
Date: Mon May 19 13:33:29 2008
New Revision: 657963
URL: http://svn.apache.org/viewvc?rev=657963&view=rev
Log:
- off by (n)one
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=657963&r1=657962&r2=657963&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] Mon May 19 13:33:29 2008
@@ -970,7 +970,7 @@
function makeDocs(start, end, templateDoc) {
var templateDocSrc = templateDoc ? templateDoc.toSource() : "{}"
var docs = []
- for(var i=start; i<end; i++) {
+ for(var i=start; i<=end; i++) {
var newDoc = eval("(" + templateDocSrc + ")");
newDoc._id = (i).toString();
newDoc.integer = i