bkochuna / ners570f24-SpMV

3 stars 0 forks source link

Add construction/destrucoin tests for the JDS matrix class #11

Open KyleVaughn opened 2 weeks ago

KyleVaughn commented 2 weeks ago

Description:

Develop unit tests to validate the construction and destruction processes of the Jagged Diagonal Storage (JDS) matrix class. The JDS format is an efficient method for representing sparse matrices that allows easy access to rows with different lengths. Ensuring the robustness of the JDS matrix class’s lifecycle is crucial for reliable library performance.

Tasks:

• Investigate the current implementation of the JDS matrix class. • Define the edge cases and common scenarios to be tested during construction and destruction. • Determine the resources and dependencies required for testing. • Write unit tests for various construction scenarios (empty matrix, typical sparse matrix, very large matrices). • Write unit tests to verify the proper destruction and memory cleanup. • Document the test cases and include them in the project’s testing guidelines.

Definition of done:

In order to consider this issue as completed, the following points should be successfully checked in addition to completeness of all tasks. 1- Unit tests for the construction and destruction of the JDS matrix class are written and integrated. 2- All tests pass successfully, ensuring correct lifecycle management. 3- Documentation is updated, detailing the tests, their purpose, and the results. 4- Peer code review completed with all raised issues addressed.

jsayut1 commented 1 week ago

I am reviewing this