Add unit tests for vector operations - #163
Conversation
222448082Ashen
left a comment
There was a problem hiding this comment.
I have reviewed the changes in unit_test_vector.cpp. The test coverage is comprehensive and follows the established project structure. The use of Approx for floating-point comparisons is a great addition for precision stability. This PR effectively improves the reliability of our core mathematics module. Approved.
kyriesk
left a comment
There was a problem hiding this comment.
I tested the unit_test_vector.cpp on my local machine using a WSL setup, and all tests passed without issues. The code follows SplashKit’s coding standards and behaves functional.
olive-tree-branch
left a comment
There was a problem hiding this comment.
I have run the tests on native Linux and found no new problems or any errors. The formatting of the code is up to standard and the tests cover a broad range of functionality
Description
Added a new vector unit test suite for SplashKit Core.
This PR introduces unit tests for core vector functionality in
unit_test_vector.cpp. The tests validate vector creation, vector arithmetic operations, vector properties, and helper utility functions.The following functionality is tested:
These tests improve confidence in the correctness and stability of SplashKit's vector mathematics functionality.
Type of change
How Has This Been Tested?
Tested by rebuilding the project and running both the interactive test application and automated unit test suites.
Commands used:
All tests passed successfully.
Testing Checklist
Checklist