nikitrifonovprojects / Learning

0 stars 0 forks source link

Add and subtract #12

Closed iliantrifonov closed 7 years ago

iliantrifonov commented 7 years ago

Read input in the form of a string from the console in the following format: 1+3-5+2=

The result should be the same as a calculator would provide. The end of your input will be the equals sign (=). The result will be the calculated number.

Create unit tests for the task.

iliantrifonov commented 7 years ago

Split up your unit tests better. If a method has "And" in its name, it is not testing a single thing.

For unit tests we can allow a single "And" on rare occasions, but most unit tests need to test only a single thing.

iliantrifonov commented 7 years ago

Fix the following:

iliantrifonov commented 7 years ago

failed tests

Fix the failing unit tests