Skip to content

Commit

Permalink
added some asserts to get rid of some warning
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryAmazed committed May 8, 2024
1 parent 200d003 commit a8567a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/density/ACTG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main() {
std::string str;

std::vector<std::string> strs;
freopen("../tests/density/ACTG.txt", "r", stdin);
assert(freopen("../tests/density/ACTG.txt", "r", stdin));
for (int i = 0; i < 100; i++) {
std::cin >> str;
strs.pb(str);
Expand Down Expand Up @@ -87,7 +87,7 @@ int main() {
sync_vec[i].pb(am);
}
}
freopen("../tests/density/out1.txt", "w", stdout);
assert(freopen("../tests/density/out1.txt", "w", stdout));
for (int i = 0; i < 4; i++) {
for (size_t j = 0; j < 100; j++) {
std::cout << mod_min_vec[i][j] << " ";
Expand Down
4 changes: 2 additions & 2 deletions tests/density/non-ACTG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main() {
std::string str;

std::vector<std::string> strs;
freopen("../tests/density/non-ACTG.txt", "r", stdin);
assert(freopen("../tests/density/non-ACTG.txt", "r", stdin));
for (int i = 0; i < 100; i++) {
std::cin >> str;
strs.pb(str);
Expand Down Expand Up @@ -132,7 +132,7 @@ int main() {
sync_vec[i].pb(am);
}
}
freopen("../tests/density/out2.txt", "w", stdout);
assert(freopen("../tests/density/out2.txt", "w", stdout));
for (int i = 0; i < 4; i++) {
for (size_t j = 0; j < 100; j++) {
std::cout << mod_min_vec[i][j] << " ";
Expand Down

0 comments on commit a8567a9

Please sign in to comment.