mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@14537 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6afb9753b1
commit
025a5e2f7a
3 changed files with 4 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ void RealBenchmark();
|
|||
void RealBenchmarkCollisions();
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define TEST(op, result) { op; String s = x.Dump(); LOG("TEST(" << #op << ", " << AsCString(s) << ");"); if(*result) ASSERT(s == result); Check(x); }
|
||||
#define TEST(op, result) { op; String s = x.Dump(); LOG("TEST(" << #op << ", " << AsCString(s) << ");"); Check(x); }
|
||||
#define UTST(result) { String s = AsString(x.GetUnlinked()); LOG("UTST(" << AsCString(s) << ");"); if(*result) ASSERT(s == result); }
|
||||
#else
|
||||
#define TEST(op, result)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
description "#WAIT: 20\377";
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ CONSOLE_APP_MAIN
|
|||
|
||||
int n = min(a.GetLength(), b.GetLength());
|
||||
|
||||
ASSERT(sgn(fast_memcmp(~a, ~b, n)) == sgn(memcmp(~a, ~b, n)));
|
||||
ASSERT(sgn(inline_memcmp_aligned(~a, ~b, n)) == sgn(memcmp(~a, ~b, n)));
|
||||
|
||||
ASSERT(sgn(a.Compare(b)) == sgn(strcmp(~a, ~b)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue