Tests for Vectors class
Source file for testing Vectors class using googletest.
- Author
Mukund Yedunuthala
Functions
-
TEST(TestVectors, TestSizeAfterAssignment)
Tests if the size of a Vectors object is correctly set after initialization.
This test checks that after creating a Vectors object with size 3, the getSize() method correctly returns 3.
-
TEST(TestVectors, TestValueAfterAssignment)
Tests if all elements of a Vectors object are correctly assigned a value.
This test initializes a Vectors object of size 3, sets all elements to 1.0 using setToValue(1.0), and verifies that the first element is 1.0.