Closed Sheshuk closed 2 years ago
We need to change the test names/practice description rather. It's intentional, you want the squares to always draw in the same direction.
EDIT: my bad, I misread the issue. Indeed, the test needs a fix.
Thanks for the report! Please let us know if you encounter anything like this again.
Describe the bug In the practice part the test for the turtle direction fails when the code is not composed of four
turn_right(90)
To Reproduce Steps to reproduce the bug:
Expected behavior The test should pass for the given code, as well as more complicated examples. The test is expected to be checking the exact conditions in the test description (turtle direction), instead of parsing the code.
Information about your device (please complete the following information):
Additional context Probably this is an easy fix, something like checking
_turn_degrees
value instead of https://github.com/GDQuest/learn-gdscript/blob/fb5de4d757dbfbf172f3c46db5ab7b73fc44ef43/course/lesson-6-multiple-function-parameters/drawing_squares/TestsDrawingSquares.gd#L33