bkochuna / ners570f24-SpMV

3 stars 0 forks source link

Add construction/destruction tests for the COO matrix class #8

Open KyleVaughn opened 2 weeks ago

KyleVaughn commented 2 weeks ago

Description:

This goal of this issue is to implement unit tests to evaluate the functionality of constructor and destructor methods for the COO class. Constructors serve the role of making an instance of a class, often given user input. They should parse that input and create an object with key variables set. For the COO class, the inputs would be the matrix dimensions and the precision for the matrix's data. The unit tests should verify this functionality. Destructors serve to remove an instance of an object from memory and are important to avoid memory leaks. The unit tests should verify that the object is removed from memory.

Tasks:

Definition of done:

Unit tests are written to evaluate: whether the constructor makes an object, whether input data to the constructor is correctly reflected in the created object, and whether the destructor removes the object from memory.

athenafhl commented 1 day ago

I'm reviewing this.