v1
3/8/2020 by Finesse 3/8/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var casesCount = 1000;

var map = {};
var switchCode = 'function withSwitch(key) { switch (key) {';

for (var i = 0; i < casesCount; ++i) {
  map[i] = 'case_' + i;
  switchCode += ' case ' + JSON.stringify(i) + ': return ' + JSON.stringify(map[i]) + ';';
}

switchCode += ' }}';
eval(switchCode);

function withMap(key) {
  return map[key];
}
delete caserun single casemove downdrag and drop case


ready



withSwitch(4);
withSwitch(200);
withSwitch(550);
withSwitch(700);
withSwitch(999);
delete caserun single casemove updrag and drop case


ready



withMap(4);
withMap(200);
withMap(550);
withMap(700);
withMap(999);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN