Cody

Solution 2152302

Submitted on 6 Mar 2020 by Asif Newaz
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(isequal(string_math('one'),false))

al = 3 c = '1' d = 1

2   Pass
assert(isequal(string_math('four'),true))

al = 4 c = '4' d = 4

3   Pass
assert(isequal(string_math('nine divided by one times three plus six'),true))

al = 33 c = '9 / 1 * 3 + 6' d = 33

4   Pass
assert(isequal(string_math('nine divided by one multiplied by three plus six'),false))

al = 40 c = '9 / 1 * 3 + 6' d = 33

5   Pass
assert(isequal(string_math('six plus nine times six divided by two plus five'),false))

al = 39 c = '6 + 9 * 6 / 2 + 5' d = 38

6   Pass
assert(isequal(string_math('seven minus nine plus eight times five plus eight plus two'),true))

al = 48 c = '7 - 9 + 8 * 5 + 8 + 2' d = 48

7   Pass
assert(isequal(string_math('nine plus six multiplied by three plus nine'),true))

al = 36 c = '9 + 6 * 3 + 9' d = 36

8   Pass
assert(isequal(string_math('plus eight plus nine'),true))

al = 17 c = '+ 8 + 9' d = 17