Cody

Solution 1876202

Submitted on 16 Jul 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(numCmp('12.3456',12.3456))

2   Fail
assert(numCmp('12.3456',12.3456789))

Assertion failed.

3   Pass
assert(~numCmp('12.3456',12.345))

4   Pass
assert(~numCmp('12.34567890',12.3456))

5   Fail
assert(numCmp('12e6',12e6))

Error using assert The condition input argument must be a scalar logical. Error in Test5 (line 1) assert(numCmp('12e6',12e6))

6   Fail
assert(~numCmp('54',100))

Error using assert The condition input argument must be a scalar logical. Error in Test6 (line 1) assert(~numCmp('54',100))