From 6818463d210ae374dae4f1f1b2ac12ecbbb1293e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 23 Apr 2014 17:42:14 +0100 Subject: [PATCH] Regression-test scaffolding for pp2limit method. --- src/mkws-filter.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; } -- 1.7.10.4