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

Misleading description for difference-of-squares exercise #54

Open
Stexxe opened this issue Jul 31, 2022 · 1 comment
Open

Misleading description for difference-of-squares exercise #54

Stexxe opened this issue Jul 31, 2022 · 1 comment

Comments

@Stexxe
Copy link

Stexxe commented Jul 31, 2022

The description of the difference-of-squares exercise states:

Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.

Why do I have to make the tests for squareOfSum and sumOfSquares functions pass if I can code a solution without them by using a formula?

@keiravillekode
Copy link
Contributor

Exercism uses a Test Driven Development (TDD) approach. The detailed requirements are often not fully expressed in the description but are contained in the tests.

This isn't specific to the WebAssembly track. The problem-specifications are shared across languages, including exercise descriptions and test cases.

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

2 participants