Big Test vs Small Test

Edit on GitHub

Setup

Tests

  • Big Test

    var MULTIPLE = 2;
    var BASE_POINTS = 200;
    
    var testFunc = function(exp) {
    return Math.floor((Math.sqrt(4 * BASE_POINTS * MULTIPLE * exp + Math.pow(BASE_POINTS, 2)) - BASE_POINTS) / (2 * BASE_POINTS * MULTIPLE))+1;
    }
    
    testFunc(234234)
  • Small Test

    [1, 2, 3, 4, 5, 6, 7].reduce(item => false}