Cody

Solution 670400

Submitted on 15 May 2015 by goc3
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))

ans = 0

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

ans = 1

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

ans = 1

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

ans = 0

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

ans = 0

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

ans = 1

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

ans = 1

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

ans = 1