Closed akram1903 closed 3 months ago
const calc = require('./funcs')
// ADD test("testing basic add 1+1",()=>{ expect(calc.add(1,1)).toStrictEqual(2); });
test("testing negative numbers add",()=>{ expect(calc.add(-2,-3)).toStrictEqual(-5); });
test("testing fractions add",()=>{ expect(calc.add(2.3,-3)).toStrictEqual(-0.7); });
// SUB test("testing normal subtraction",()=>{ expect(calc.subtract(1,1)).toStrictEqual(0); })
test("testing negative subtraction",()=>{ expect(calc.subtract(1,-1)).toStrictEqual(2); })
test("testing fractions subtraction",()=>{ expect(calc.subtract(1.5,0.5)).toStrictEqual(1); })
// MUL test("testing normal multiplication",()=>{ expect(calc.multiply(2,2)).toStrictEqual(4); })
test("testing multiplication identity",()=>{ expect(calc.multiply(1,2)).toStrictEqual(2); })
test("testing multiplication by zero",()=>{ expect(calc.multiply(0,2)).toStrictEqual(0); }) // DIV test("testing normal division",()=>{ expect(calc.divide(1,2)).toStrictEqual(0.5); })
test("testing division by negative",()=>{ expect(calc.divide(1,-2)).toStrictEqual(-0.5); })
test("testing division by zero",()=>{ expect(calc.divide(1,0)).toBeFalsy(); })
![Screenshot from 2024-07-07 17-04-50](https://github.com/codescalersinternships/home/assets/77437432/48e09528-986d-4885-ba91-45ee899f1aa4)
![image](https://github.com/codescalersinternships/home/assets/77437432/85e12b06-736c-419a-8118-046de44c0a37)
Installed java and Jmeter on ubuntu Created a Blazemeter test case Videos watched:
first 10 videos of ccna playlist done
first 18 videos of ccna playlist done
Week 1
Resources
Week 2
Resources
Week 3
Resources
Week 4
Resources
Docker/docker-compose
Networking
Software development process / testing
Week 5