mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
19 lines
380 B
C++
19 lines
380 B
C++
#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");
|
|
}
|