This program must be a function that returns 3.14 or 3.13. All functions from Math are available except Math.PI.
Changelog: Corrected Kumite to working state, under given description. Wrote test case for given description.
describe("Solution", function() { it("return value is correct", function() { const ret = pi(); Test.expect(ret == 3.14 || ret == 3.13); }); });
- describe("Solution", function() {
- it("return value is correct", function() {
- const ret = pi();
- Test.expect(ret == 3.14 || ret == 3.13);
- });
- });
Remove unnecessary local variable. Would be optimized away by RVO anyway.