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@11399 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d4c2f9361a
commit
339b907850
2 changed files with 29 additions and 0 deletions
19
autotest/TestLZMA/TestLZMA.cpp
Normal file
19
autotest/TestLZMA/TestLZMA.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <Core/Core.h>
|
||||
#include <plugin/lzma/lzma.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_FILE|LOG_COUT);
|
||||
|
||||
String data = LoadDataFile("TestLZMA.cpp");
|
||||
for(int i = 0; i < 6; i++)
|
||||
data << data;
|
||||
|
||||
DUMP(data.GetCount());
|
||||
String s = LZMACompress(data);
|
||||
DUMP(s.GetCount());
|
||||
ASSERT(LZMADecompress(s) == data);
|
||||
LOG("============= OK");
|
||||
}
|
||||
10
autotest/TestLZMA/TestLZMA.upp
Normal file
10
autotest/TestLZMA/TestLZMA.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
Core,
|
||||
plugin/lzma;
|
||||
|
||||
file
|
||||
TestLZMA.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue