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

Improve test suite for a broader range of cases more efficiently #152

Open
fennecJ opened this issue Sep 15, 2024 · 0 comments
Open

Improve test suite for a broader range of cases more efficiently #152

fennecJ opened this issue Sep 15, 2024 · 0 comments

Comments

@fennecJ
Copy link
Collaborator

fennecJ commented Sep 15, 2024

As noted in #151 , the current test suite only accepts tests where the final result is between 0 and 255 (a byte). This restriction makes it difficult to perform certain tests.

For example, when testing multi-digit hexadecimal values with the Fibonacci function, such as fib(0x10) = 987, the test must be written as:

(fib(0x10) - 987) == 0

Because final result exceed 255. This approach is somewhat awkward and unintuitive. Ideally, we should be able to test the result directly without needing to fit everything within the byte range. Expanding the range of accepted results or modifying the mechanism for capturing return values could make the test suite more flexible and easier to use for larger values.

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

1 participant