exercism / j

Exercism exercises in J.
https://exercism.org/tracks/j
MIT License
8 stars 9 forks source link

GitHub Actions Testing Files and Bug Fixes #97

Closed eNascimento178 closed 2 months ago

eNascimento178 commented 2 months ago

OBS.: When the ecpected value of a test is an atom and the soultion produces empty comparisons done using the = verb will produce an empty shape. This causes assertions to always return true for the specified test. To address this issue, we have implemented the following solutions:

  1. Replacing the Comparison Verb with -:: Instead of using =, we now use -: to compare atoms against empty results. This ensures that the assertion behaves as expected even when the result is empty.
  2. Turning the Expected Value into a List Containing a Single Atom: In cases where the expected value is an atom, we wrap it in a list. This prevents the assertion from always evaluating to true when the solution returns an empty result.

The choice of which solution to apply was made on a case-by-case basis, considering the specific context of the exercise.

github-actions[bot] commented 2 months ago

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!