/* * Copyright (C) 2006-2011 by Benedict Paten (benedictpaten@gmail.com) * * Released under the MIT license, see LICENSE.txt */ /* * sonLibRandomTest.c * * Created on: 22-Jun-2010 * Author: benedictpaten */ #include "sonLibGlobalsTest.h" static void test_stCompression_compressAndDecompressP(CuTest *testCase, int32_t rounds, int32_t minSize, int32_t maxSize) { /* * Exercises the two compression functions. */ for(int32_t i=0; i= 0); //Now decompress int64_t size2; char *randomString2 = stCompression_decompress(compressedString, compressedSizeInBytes, &size2); CuAssertTrue(testCase, size == size2); for(int32_t j=0; j