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

Некорректный тест, lesson 8 #2

Open
ghost opened this issue Oct 19, 2020 · 0 comments
Open

Некорректный тест, lesson 8 #2

ghost opened this issue Oct 19, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2020

Некорректный метод (lesson8.task1.Tests#approxEquals) проверки двух отрезков (экземпляров класса lesson8.task1.Geometry.Segment) на равенство.
Как есть: возврат true, если одновременно начало первого отрезка равно началу второго отрезка и конец первого отрезка равен концу второго отрезка, т.е. учитывается "направление" отрезка.
Как должно быть: два отрезка равны, если либо начало первого отрезка совпадает с началом второго отрезка и конец первого отрезка совпадает с концом второго отрезка, либо начало первого отрезка совпадает с концом второго и конец первого отрезка совпадает с началом второго отрезка.

Некорректный метод approxEquals вызывается методом assertApproxEquals для тестирования метода diameter из lesson8.task1.Geometry.

invalid

Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Oct 23, 2020
Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Oct 30, 2020
Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Nov 3, 2020
Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Nov 9, 2020
Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Nov 14, 2020
Iksburg added a commit to Iksburg/KotlinAsFirst2020 that referenced this issue Nov 14, 2020
argraur pushed a commit to argraur/KotlinAsFirst2020 that referenced this issue Feb 15, 2022
argraur pushed a commit to argraur/KotlinAsFirst2020 that referenced this issue Feb 15, 2022
argraur added a commit to argraur/KotlinAsFirst2020 that referenced this issue Feb 15, 2022
s1ckoleg pushed a commit to s1ckoleg/KotlinAsFirst2020 that referenced this issue Mar 1, 2022
Lesson 9 fifteenGame commit Kotlin-Polytech#2:
Added some more matrices methods, changed fun a bit.
vladdenisov added a commit to vladdenisov/KotlinAsFirst2020 that referenced this issue Mar 3, 2022
vladdenisov added a commit to vladdenisov/KotlinAsFirst2020 that referenced this issue Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants