mirror of
https://github.com/Z3Prover/z3
synced 2025-08-09 20:50:50 +00:00
ensure that assertions within the unit tests are exercised in all build modes, remove special handling of SASSERT for release mode #1163
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3f8b63f5a8
commit
b1298d7bde
67 changed files with 1277 additions and 1285 deletions
|
@ -24,7 +24,7 @@ Revision History:
|
|||
static void tst1() {
|
||||
string_buffer<> b;
|
||||
b << "Testing" << 10 << true;
|
||||
SASSERT(strcmp(b.c_str(), "Testing10true") == 0);
|
||||
ENSURE(strcmp(b.c_str(), "Testing10true") == 0);
|
||||
}
|
||||
|
||||
static void tst2() {
|
||||
|
@ -34,7 +34,7 @@ static void tst2() {
|
|||
b << r;
|
||||
}
|
||||
TRACE("string_buffer", tout << b.c_str() << "\n";);
|
||||
SASSERT(strlen(b.c_str()) == 10000);
|
||||
ENSURE(strlen(b.c_str()) == 10000);
|
||||
}
|
||||
|
||||
static void tst3() {
|
||||
|
@ -42,7 +42,7 @@ static void tst3() {
|
|||
string_buffer<128> b2;
|
||||
b2 << "World";
|
||||
b << "Hello" << " " << b2;
|
||||
SASSERT(strcmp(b.c_str(), "Hello World") == 0);
|
||||
ENSURE(strcmp(b.c_str(), "Hello World") == 0);
|
||||
}
|
||||
|
||||
void tst_string_buffer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue