Kotlin-Polytech / KotlinAsFirst

Задачи для онлайн-курса "Котлин как первый язык программирования"
Creative Commons Attribution Share Alike 4.0 International
74 stars 115 forks source link

lesson5.task1.plusMinus: consider allowing signed numbers. #38

Closed gagarski closed 6 years ago

gagarski commented 6 years ago

Currently, to strictly check input string for correctness a student has to perform two checks:

Most students usually do not do at least one of those and it is rarely noted by teachers. A possible bug can only be found by random tests in some rare cases.

This can be solved two ways:

mglukhikh commented 6 years ago

I added assertThrows tests for this task & computeDeviceCells.