-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
In datafile_test.cpp, there are 2 occurrences where assert is called, but rather than pass in the threw variable, instead assert is called with the constant true, which will cause the test to always succeed.
{
bool threw = false;
try {
load_products("not a filename");
} catch (runtime_error e) {
threw = true;
}
assert(true);
}
cout << "Invalid file format" << endl;
{
bool threw = false;
try {
load_products("datafile.hpp");
} catch (runtime_error e) {
threw = true;
}
assert(true);
}This section of the code isn't part of anything that will affect the project as a whole (as the code this is testing is given), but it's still something which should be looked at.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels