describe("pow", function(){ it("calculate the pow of the number", function(){ assert.equal(pow(2, 3), 8); }) function maketest(x){ let expected = x * x * x; it(`calculate ${x}^3`, function(){ assert.equal(pow(x, 3), expected); }) } for(let i = 1; i < 5; i++){ maketest(i); } });