From: Mike Taylor Date: Wed, 23 Apr 2014 16:42:14 +0000 (+0100) Subject: Regression-test scaffolding for pp2limit method. X-Git-Tag: 1.0.0~864 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6818463d210ae374dae4f1f1b2ac12ecbbb1293e;p=mkws-moved-to-github.git Regression-test scaffolding for pp2limit method. --- diff --git a/src/mkws-filter.js b/src/mkws-filter.js index 4943ca1..4d600cc 100644 --- a/src/mkws-filter.js +++ b/src/mkws-filter.js @@ -72,6 +72,15 @@ function filterSet(team) { }; that.pp2limit = function(initial) { + var OLD = that.OLD_pp2limit(initial); + var NEW = that.NEW_pp2limit(initial); + if (OLD !== NEW) { + alert("pp2limit(): OLD[" + OLD + "] !== NEW[" + NEW + "]"); + } + return OLD; + }; + + that.OLD_pp2limit = function(initial) { var res = initial || ""; for (var i in m_list) { @@ -85,6 +94,9 @@ function filterSet(team) { return res; }; + that.NEW_pp2limit = function(initial) { + return that.OLD_pp2limit(initial); + } return that; }