.autotests

git-svn-id: svn://ultimatepp.org/upp/trunk@7164 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-04 17:12:41 +00:00
parent 7df7017b8e
commit 0cfdc224aa
8 changed files with 44 additions and 24 deletions

View file

@ -2,12 +2,6 @@
using namespace Upp;
#ifdef flagLONG
#define N 100000000
#else
#define N 1000000
#endif
String RandomString(int n)
{
String h;
@ -20,8 +14,10 @@ CONSOLE_APP_MAIN
{
StringStream ss;
String es;
for(int i = 0; i < 100000000; i++) {
if(i % 10000 == 0)
int time0 = msecs();
int i = 0;
while(msecs(time0) < 150000) {
if(++i % 10000 == 0)
Cout() << i << "\r\n";
int p = Random(1000);
String h = RandomString(p);