Skip to content
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

Некорректный результат в ветке "testng" в тестах, кратных 1000 #2

Open
ks1109b opened this issue Feb 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ks1109b
Copy link
Owner

ks1109b commented Feb 17, 2021

Описание проблемы

Если сумма предполагаемой покупки кратна 1000, выводится некорректный результат.

Шаги по воспроизведению

  1. Создать базовое приложение, позволяющее воспроизвести ситуацию:
    public void shouldBuyIf1000(){
        int actual = service.remain(1000);
        int expected = 0;
        assertEquals(actual, expected);
    }

Ожидаемый результат

Тест прошел успешно.

Фактический результат

Тест обрушился.

Программное окружение

  • Windows 10 Home x64
  • Openjdk version "11.0.9.1"
  • IntelliJ IDEA 2020.3 (Community Edition)

Логи

shouldBuyIf1000-testng.zip

@ks1109b ks1109b added the bug Something isn't working label Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant