.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@9985 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-06-28 13:13:36 +00:00
parent 30a1c1ebd9
commit a87d322fee
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
SizeStream ss;
ASSERT(ss.IsStoring());
ss.Put(0);
ASSERT(ss.GetSize() == 1);
int len = 1;
SeedRandom();
for(int i = 0; i < 100; i++) {
byte h[201];
int l = Random(200);
ss.Put(h, l);
len += l;
ASSERT(len == ss.GetSize());
}
LOG("============= OK");
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
Stream.cpp;
mainconfig
"" = "";

4
autotest/Stream/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _Stream_icpp_init_stub
#define _Stream_icpp_init_stub
#include "Core/init"
#endif