Clean up some test files.

This commit is contained in:
James Grogan 2022-11-30 18:28:50 +00:00
parent 1adc9272f8
commit b45385e8c7
51 changed files with 485 additions and 281 deletions

View 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
)

View file

@ -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;

View file

@ -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);