Question: Create .hpp and .cpp wer Explorer Toolbox * # Miscellaneous Files - No Configurations (Global Scope) 1 9#include catch/catch.hpp 2 #include ../matrix3d.hpp 3 4 TEST_CASE
Create .hpp and .cpp 
wer Explorer Toolbox * # Miscellaneous Files - No Configurations (Global Scope) 1 9#include "catch/catch.hpp" 2 #include "../matrix3d.hpp" 3 4 TEST_CASE ("Default Matrix") 5 { 6 Matrix 3D m; 7 CHECK (0 == m. GetValue(0, 0)); 8 9 10 OTEST_CASE ("Specified Matrix") 11 { 12 13 1 02 14 1 2 0 15 1 0 0 16 */ 17 18 Matrix 3D m(1,0,2, 1,2,0, 1,0,0); 19 CHECK(1 == m. GetValue(@, 0)); 20 CHECK ( 2 == m. GetValue(0, 2)); 21 22 23 QTEST_CASE ("Determinant for default matrix") 24 { 25 Matrix 3D m; 26 CHECK (0 == m.Determinant()); 27 28 29 DTEST_CASE ("Determinant for specified matrix") 30 { 31 Matrix 3D m(1,0,2, 1,2,0, 1,0,0); 32 // https://www.wolframalpha.com/input/?i=%7B%7B1%2C0%2C2%7D%2C%7B1%2C2%2C%7D%2C%7B1%2C0%2C%7D%7D 33 CHECK(-4 == m.Determinant()); 34 35 100 % No issues found Ln: 12 Ch: 4 Col: 7 TABS CRLF wer Explorer Toolbox * # Miscellaneous Files - No Configurations (Global Scope) 1 9#include "catch/catch.hpp" 2 #include "../matrix3d.hpp" 3 4 TEST_CASE ("Default Matrix") 5 { 6 Matrix 3D m; 7 CHECK (0 == m. GetValue(0, 0)); 8 9 10 OTEST_CASE ("Specified Matrix") 11 { 12 13 1 02 14 1 2 0 15 1 0 0 16 */ 17 18 Matrix 3D m(1,0,2, 1,2,0, 1,0,0); 19 CHECK(1 == m. GetValue(@, 0)); 20 CHECK ( 2 == m. GetValue(0, 2)); 21 22 23 QTEST_CASE ("Determinant for default matrix") 24 { 25 Matrix 3D m; 26 CHECK (0 == m.Determinant()); 27 28 29 DTEST_CASE ("Determinant for specified matrix") 30 { 31 Matrix 3D m(1,0,2, 1,2,0, 1,0,0); 32 // https://www.wolframalpha.com/input/?i=%7B%7B1%2C0%2C2%7D%2C%7B1%2C2%2C%7D%2C%7B1%2C0%2C%7D%7D 33 CHECK(-4 == m.Determinant()); 34 35 100 % No issues found Ln: 12 Ch: 4 Col: 7 TABS CRLF
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
