MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / test3

Function test3

test/test_gauss.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void test3(){
33 //x = 0
34 //y = 1
35 //x + y = 2
36 matrix A = {{1, 0}, {0, 1}, {1, 1}};
37 vec b = {0, 1, 2};
38 vec ans(2);
39 A[0].push_back(b[0]);
40 A[1].push_back(b[1]);
41 A[2].push_back(b[2]);
42 assert(gauss(A, ans) == 0);
43}
44
45int main(){
46 test1();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected