Skip to content

Commit

Permalink
Fix condition when searching torus with formula
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Jan 19, 2024
1 parent c5f70ee commit c8ecade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libflatsurf/test/saddle_connections.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ TEMPLATE_TEST_CASE("Saddle Connections on a Torus", "[SaddleConnections]", (long
int expected = 0;
for (int x = 1; x < bound_x + bound_y + 1; x++)
for (int y = 1; y <= x; y++)
if (x * x + y * y < bound.squared() && std::gcd(x, y) == 1)
if (x * x + y * y <= bound.squared() && std::gcd(x, y) == 1)
expected++;

{
Expand Down

0 comments on commit c8ecade

Please sign in to comment.