couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1042261 - /couchdb/trunk/share/www/script/test/changes.js
Date Sat, 04 Dec 2010 23:08:05 GMT
Author: jan
Date: Sat Dec  4 23:08:05 2010
New Revision: 1042261

URL: http://svn.apache.org/viewvc?rev=1042261&view=rev
Log:
fix changes test surfaced by previous commit

Modified:
    couchdb/trunk/share/www/script/test/changes.js

Modified: couchdb/trunk/share/www/script/test/changes.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/changes.js?rev=1042261&r1=1042260&r2=1042261&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/changes.js (original)
+++ couchdb/trunk/share/www/script/test/changes.js Sat Dec  4 23:08:05 2010
@@ -374,8 +374,11 @@ couchTests.changes = function(debug) {
       filters: {
         foo:
           'fun({Doc}, Req) -> ' +
-          '  Value = couch_util:get_value(<<"value">>, Doc),' +
-          '  (Value rem 2) =:= 0' +
+          '  case couch_util:get_value(<<"value">>, Doc) of' +
+          '  undefined -> false;' +
+          '  Value -> (Value rem 2) =:= 0;' +
+          '  _ -> false' +
+          '  end ' +
           'end.'
       }
     };



Mime
View raw message