Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 392 Bytes

TOC

加法函数的测试

1 加 1 应该等于 2.

expect(add(1, 1)).to.be.equal(2);

任何数加0应该等于自身.

expect(add(1, 0)).to.be.equal(1);

乘法函数的测试

1 乘 1 应该等于 1.

expect(multiply(1, 1)).to.be.equal(1);
You can’t perform that action at this time.