From aadf1257fe586b666e8b7b52e0a6ee67c56f9896 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 6 Jul 2016 07:50:37 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@10013 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/ZeroLZ4/ZeroLZ4.cpp | 13 +++++++++++++ autotest/ZeroLZ4/ZeroLZ4.upp | 10 ++++++++++ autotest/ZeroLZ4/init | 5 +++++ 3 files changed, 28 insertions(+) create mode 100644 autotest/ZeroLZ4/ZeroLZ4.cpp create mode 100644 autotest/ZeroLZ4/ZeroLZ4.upp create mode 100644 autotest/ZeroLZ4/init diff --git a/autotest/ZeroLZ4/ZeroLZ4.cpp b/autotest/ZeroLZ4/ZeroLZ4.cpp new file mode 100644 index 000000000..8e8d6e0be --- /dev/null +++ b/autotest/ZeroLZ4/ZeroLZ4.cpp @@ -0,0 +1,13 @@ +#include +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + StdLogSetup(LOG_COUT|LOG_FILE); + String h = LZ4Compress(String()); + h = LZ4Decompress(h); + ASSERT(h.GetCount() == 0); + LOG("=============== OK"); +} diff --git a/autotest/ZeroLZ4/ZeroLZ4.upp b/autotest/ZeroLZ4/ZeroLZ4.upp new file mode 100644 index 000000000..639c1ad29 --- /dev/null +++ b/autotest/ZeroLZ4/ZeroLZ4.upp @@ -0,0 +1,10 @@ +uses + Core, + plugin/lz4; + +file + ZeroLZ4.cpp; + +mainconfig + "" = ""; + diff --git a/autotest/ZeroLZ4/init b/autotest/ZeroLZ4/init new file mode 100644 index 000000000..1a778c400 --- /dev/null +++ b/autotest/ZeroLZ4/init @@ -0,0 +1,5 @@ +#ifndef _ZeroLZ4_icpp_init_stub +#define _ZeroLZ4_icpp_init_stub +#include "Core/init" +#include "plugin/lz4/init" +#endif