Skip to content

Expand test coverage for electricpy, circle, and triangle modules#145

Merged
engineerjoe440 merged 2 commits intoengineerjoe440:developfrom
marcostfermin:pr/modified-tests
Feb 1, 2026
Merged

Expand test coverage for electricpy, circle, and triangle modules#145
engineerjoe440 merged 2 commits intoengineerjoe440:developfrom
marcostfermin:pr/modified-tests

Conversation

@marcostfermin
Copy link
Contributor

No description provided.

eq = c.equation()
assert "x^2 + y^2" in eq
assert " - 2*x" in eq
assert " - 4*y" in eq
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you assert the radius as well x^2 + y^2 -2x -4y - 4 will be the circle equation right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct, x² + y² - 2x - 4y - 4 = 0 simplifies to (x−1)² + (y−2)² = 9, so r = 3.
I’ve added an explicit radius assertion in the test to make this clear. See below.

@Lakshmikanth2001
Copy link
Contributor

this looks good as well

@engineerjoe440 engineerjoe440 merged commit a434ab5 into engineerjoe440:develop Feb 1, 2026
2 of 6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants