Clean up some test files.
This commit is contained in:
parent
1adc9272f8
commit
b45385e8c7
51 changed files with 485 additions and 281 deletions
11
test/compression/CMakeLists.txt
Normal file
11
test/compression/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
set(COMPRESSION_UNIT_TEST_FILES
|
||||
compression/TestStreamCompressor.cpp
|
||||
compression/TestHuffmanStream.cpp
|
||||
compression/TestLz77Encoder.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
set(COMPRESSION_UNIT_TEST_DEPENDENCIES
|
||||
compression
|
||||
PARENT_SCOPE
|
||||
)
|
|
@ -28,7 +28,7 @@ TEST_CASE(TestLz77Encoder, "compression")
|
|||
for(const auto& hit : hit_buffer)
|
||||
{
|
||||
const auto& [length, distance, next_char] = hit;
|
||||
std::cout << "Got hit " << length << " | " << distance << " | " << static_cast<int>(next_char) << std::endl;
|
||||
//std::cout << "Got hit " << length << " | " << distance << " | " << static_cast<int>(next_char) << std::endl;
|
||||
}
|
||||
|
||||
HuffmanEncoder huffman_encoder;
|
||||
|
|
|
@ -54,7 +54,7 @@ TEST_CASE(TestLz77Encoder, "compression")
|
|||
Lz77Encoder encoder(&input_stream, &output_stream);
|
||||
encoder.encode();
|
||||
|
||||
std::cout << "Encoded: " << StringUtils::toString(output_stream.getBuffer()) << std::endl;
|
||||
//std::cout << "Encoded: " << StringUtils::toString(output_stream.getBuffer()) << std::endl;
|
||||
|
||||
//auto decoded = encoder.decode(encoded);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue