-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
r.circle: Add tests for raster circle tool #4598
base: main
Are you sure you want to change the base?
Conversation
r.buffer: Add test script
… into r.circle-test
def setUpClass(cls): | ||
"""Set up a temporary region for testing.""" | ||
cls.use_temp_region() | ||
cls.runModule("g.region", n=1000, s=0, e=1000, w=0, res=10) |
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.
Is 100x100 the smallest needed to be able to test correctly this module?
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.
I have reduced the region size to a smaller size. Please let me know if there is some other feedback.
This PR adds unit tests for the
r.circle
module. The tests include:Binary Circle Test: Verifies the creation of an output and a binary raster map using the -b flag.
Distance Circle Test: Checks the output of an output and a distance-based circle raster without the -b flag.