Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unused unit test variables #10

Merged
merged 3 commits into from
Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ This will generate an `out/` folder with contents:
- `qdldl_example`: a **code example** from [`examples/c/example.c`](./examples/c/example.c)
- `libqdldl`: a static and a dynamic versions of the library.

You can include an addition option `-DUNITTESTS=ON` when calling `cmake`, which will result in an additional executable `qdldl_tester` being built in the `out/` folder to test QDLDL on a variety of problems, including those with rank deficient or otherwise ill-formatted inputs.

**N.B.** All files will have file extensions appropriate to your operating system.


Expand Down
3 changes: 1 addition & 2 deletions tests/test_rank_deficient.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ static char* test_rank_deficient()
QDLDL_float Ax[] = {1.0, 1.0, 1.0};
QDLDL_int An = 2;

// RHS and solution to Ax = b (should be impossible)
// RHS for Ax = b (should fail to solve)
QDLDL_float b[] = {1,1};
QDLDL_float xsol[] = {1,1};

//x replaces b during solve
int status = ldl_factor_solve(An,Ap,Ai,Ax,b);
Expand Down
3 changes: 1 addition & 2 deletions tests/test_sym_structure.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ static char* test_sym_structure()
QDLDL_float Ax[] = {5.0,1.0,1.0,5.0};
QDLDL_int An = 2;

// RHS and solution to Ax = b (should be impossible)
// RHS for Ax = b
QDLDL_float b[] = {1,1};
QDLDL_float xsol[] = {1,1};

//x replaces b during solve
int status = ldl_factor_solve(An,Ap,Ai,Ax,b);
Expand Down
3 changes: 1 addition & 2 deletions tests/test_tril_structure.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ static char* test_tril_structure()
QDLDL_float Ax[] = {5.0,1.0,5.0};
QDLDL_int An = 2;

// RHS and solution to Ax = b (should be impossible)
// RHS for Ax = b
QDLDL_float b[] = {1,1};
QDLDL_float xsol[] = {1,1};

//x replaces b during solve
int status = ldl_factor_solve(An,Ap,Ai,Ax,b);
Expand Down