-
Notifications
You must be signed in to change notification settings - Fork 0
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
Commits on Feb 11, 2024
-
Denis Smet committed
Feb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 073ca45 - Browse repository at this point
Copy the full SHA 073ca45View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 12dc4c2 - Browse repository at this point
Copy the full SHA 12dc4c2View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 3697769 - Browse repository at this point
Copy the full SHA 3697769View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 63efebd - Browse repository at this point
Copy the full SHA 63efebdView commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for be20ab3 - Browse repository at this point
Copy the full SHA be20ab3View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 73ee58c - Browse repository at this point
Copy the full SHA 73ee58cView commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 668f42e - Browse repository at this point
Copy the full SHA 668f42eView commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for a0721ad - Browse repository at this point
Copy the full SHA a0721adView commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 652cea3 - Browse repository at this point
Copy the full SHA 652cea3View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 25af23c - Browse repository at this point
Copy the full SHA 25af23cView commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 789f192 - Browse repository at this point
Copy the full SHA 789f192View commit details -
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 committedFeb 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 8edf279 - Browse repository at this point
Copy the full SHA 8edf279View commit details