From 339b907850e1194bd6854a5ca3ebf0d8a18b7392 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 22 Oct 2017 20:32:02 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@11399 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/TestLZMA/TestLZMA.cpp | 19 +++++++++++++++++++ autotest/TestLZMA/TestLZMA.upp | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 autotest/TestLZMA/TestLZMA.cpp create mode 100644 autotest/TestLZMA/TestLZMA.upp diff --git a/autotest/TestLZMA/TestLZMA.cpp b/autotest/TestLZMA/TestLZMA.cpp new file mode 100644 index 000000000..f6b54745f --- /dev/null +++ b/autotest/TestLZMA/TestLZMA.cpp @@ -0,0 +1,19 @@ +#include +#include + +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"); +} diff --git a/autotest/TestLZMA/TestLZMA.upp b/autotest/TestLZMA/TestLZMA.upp new file mode 100644 index 000000000..407ae22e1 --- /dev/null +++ b/autotest/TestLZMA/TestLZMA.upp @@ -0,0 +1,10 @@ +uses + Core, + plugin/lzma; + +file + TestLZMA.cpp; + +mainconfig + "" = ""; +