N
none
I am trying to use assert to test an expression:
#include <assert.h>
#include <vector>
int main() {
std::vector<int> myVector;
myVector.push_back(3);
assert (myVector[0] == 444);
}
when I run this code I get no fail message. Should assert not report an error when the expression
evaluates to false?
#include <assert.h>
#include <vector>
int main() {
std::vector<int> myVector;
myVector.push_back(3);
assert (myVector[0] == 444);
}
when I run this code I get no fail message. Should assert not report an error when the expression
evaluates to false?