-
Notifications
You must be signed in to change notification settings - Fork 0
Mock #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
yurii-litvinov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Существенных замечаний нету, так что зачтена
| @@ -0,0 +1,4 @@ | |||
| package ru.mit.spbau.kazakov.exception; | |||
|
|
|||
| public class EmptyStackException extends RuntimeException { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще, этой штуке тоже нужен комментарий
| import ru.mit.spbau.kazakov.exception.EmptyStackException; | ||
|
|
||
| /** | ||
| * An implementation of stack interface for arithmetic calculator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Неправда, он интерфейс не реализует :)
Кстати, с точки зрения архитектуры --- зря, зависимости от конкретных классов --- это плохо
| * @param value to initialize with | ||
| * @param prev a previous Node | ||
| */ | ||
| Node(T value, Node<T> prev) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тоже можно было его явно пометить как public или private
|
|
||
| @Test | ||
| public void testIsNumericPlus() { | ||
| assertFalse(ArithmeticUtility.isNumeric("-")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В тесте testIsNumericMinus проверяется +, в тесте testIsNumericPlus проверяется -, к чему бы это?
|
|
||
| PolishNotationCalculator calculator = new PolishNotationCalculator(stack); | ||
| calculator.evaluate(Arrays.asList("1", "2", "%", "5")); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
На мой вкус лишние пустые строчки не очень
No description provided.