v1
9/7/2017 by lucifer63 -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
'use strict';
var range_two_for = function(a,b) {
    var c = []; 
    var l = 1;
    for (var i=a; i<b; i++) {
        for (var d=0; d<l; d++); {
            c[d-1] = i;
        }
        l= l+1;
    }
    return c;
}
var range_one_for = function(a,b) {
    var c = []; 
    for (var i=a; i<b; i++) {
        c.push(i);
    }
    return c;
}
var range_while = function(from, to) {
    var range = [];
    while (from <= to) {
        range.push(from++)
    }
    return range;
}
var range_no_push = function(a,b) {
    var c = new Array(Math.abs(a - b)); 
    for (var i = a; i <= b; i++) {
        c[i-a] = i;
    }
    return c;
}
var range_arrow_function = (a,b) => {
    var c = new Array(Math.abs(a - b)); 
    for (var i = a; i <= b; i++) {
        c[i-a] = i;
    }
    return c;
}


function test(f) {
    f(from, to);
}

var from = -500,
    to   = 500;
delete caserun single casemove downdrag and drop case


ready



test( range_two_for )
delete caserun single casemove upmove downdrag and drop case


ready



test( range_one_for )
delete caserun single casemove upmove downdrag and drop case


ready



test( range_while )
delete caserun single casemove upmove downdrag and drop case


ready



test( range_no_push )
delete caserun single casemove updrag and drop case


ready



test( range_arrow_function )
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