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

Enhance test coverage #164

Merged
merged 12 commits into from
Feb 11, 2024
Merged

Enhance test coverage #164

merged 12 commits into from
Feb 11, 2024

Commits on Feb 11, 2024

  1. Enhance test coverage

    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    073ca45 View commit details
    Browse the repository at this point in the history
  2. Remove splint from lint sequence in bb.edn

    The changes of this commit are made to the lint sequence inside bb.edn file. The 'splint' style check was removed from the sequencing. Now, the lint sequence now includes only 'cljfmt', 'cljstyle', 'eastwood', and 'kondo'. This simplifies the sequence and prioritizes the rest of the style checks.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    12dc4c2 View commit details
    Browse the repository at this point in the history
  3. Refactor complex number functionality and add tests

    The code was restructured to reorder, rename, and modify complex number functions in Clojure for two models ("Ben's way" and "Alyssa's way"). Float typecasting was added to some functions to ensure accurate calculations. Corresponding tests were also implemented in a new test file to validate and ensure the correctness of these revised functions. These changes enhance code clarity and testing comprehensiveness in handling complex numbers.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    3697769 View commit details
    Browse the repository at this point in the history
  4. Reformat imports in book_2_4_test.clj

    The :require block in the testing file book_2_4_test.clj has been reformatted to improve readability. No functionality was changed in this commit, just the way the code is organized for aesthetically pleasing and more manageable structure.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    63efebd View commit details
    Browse the repository at this point in the history
  5. Refactor exception handling across multiple test files

    Refactored exception handling in tests across multiple modules, replacing previous implementations with the centralized and enhanced `is-exception?` macro. This macro captures the exception type and message and eliminates repeated code, enhancing code cleanliness and maintainability.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    be20ab3 View commit details
    Browse the repository at this point in the history
  6. Modify exception checking in tests

    Refactored the way exceptions are checked in tests across various modules. This was done by changing from direct exception checks to using the `is-exception?` macro. This improves code readability and makes the test scripts more maintainable.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    73ee58c View commit details
    Browse the repository at this point in the history
  7. Correct naming for test coverage workflow

    Fixed a typo and improved the naming pattern for the "test coverage" workflow in the main GitHub actions YAML file. This change contributes to better workflow organization and execution clarity.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    668f42e View commit details
    Browse the repository at this point in the history
  8. Add test files for ex-2-73 and ex-2-75 and improve derivation functions

    Created new test files for exercises 2-73 and 2-75. The test cases for these exercises are now fully covered. Also, made some improvements in the derivation functions in exercise 2-73 by replacing `put` with `put-op`
    and `get` with `get-op` methods to manage operations in a more optimized way.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    a0721ad View commit details
    Browse the repository at this point in the history
  9. Update clj-kondo configuration and clojure.test import

    Updated the clj-kondo command in the lint task to run in parallel, improving performance. Also simplified the clojure.test import statement in the ex_2_75_test file to only include 'deftest' and 'is', making the dependencies clearer and more specific.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    652cea3 View commit details
    Browse the repository at this point in the history
  10. Update clj-kondo settings and refactor test file imports

    The clj-kondo command in the lint task has been updated to run in parallel, setting the fail level as a warning. This amendment should improve performance by running in a non-blocking mode. The clojure.test import usage in the book_2_
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    25af23c View commit details
    Browse the repository at this point in the history
  11. Refactor exception handling and update test cases

    Simplified exception handling by removing explicit checks for exception types, now only checks for expected messages. Updated multiple test cases correspondingly. Also made minor alterations to error messages for better clarity.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    789f192 View commit details
    Browse the repository at this point in the history
  12. Refactor error message formatting in misc.clj

    The error message formatting has been adjusted for clarity in the misc.clj file. An extraneous check in the 'apply-generic-test' in the book_2_5_test.clj file has also been removed for improved simplicity.
    Denis Smet committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    8edf279 View commit details
    Browse the repository at this point in the history