.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@14537 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-06-02 08:31:53 +00:00
parent 6afb9753b1
commit 025a5e2f7a
3 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -1,3 +1,5 @@
description "#WAIT: 20\377";
uses
Core;

View file

@ -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)));