Skip to content

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

Open
@fennecJ

Description

@fennecJ
Collaborator

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fennecJ

        Issue actions

          Improve test suite for a broader range of cases more efficiently · Issue #152 · sysprog21/shecc