Skip to content

Commit c265bb1

Browse files
fixup! adding unit testing
1 parent 12dea14 commit c265bb1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

extras/test/src/lzss/test_lzssDecoder.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ SCENARIO( "Decoding an LZSS stream of data", "[lzss::Decoder]" ) {
1010
// the lzss file provided as test when decompressed are made by incrementing a 4 byte integer
1111
// starting from 0, up to (file size-1)/4, thus it is easy to validate the correctness of the result
1212

13-
FILE *f = fopen("test_files/test-64k.lzss", "r");
13+
FILE *f = fopen("extras/test/test_files/test-64k.lzss", "r");
14+
REQUIRE( f != nullptr );
15+
1416
uint32_t value = 0;
1517
uint64_t position = 0;
1618

@@ -23,10 +25,6 @@ SCENARIO( "Decoding an LZSS stream of data", "[lzss::Decoder]" ) {
2325
position++;
2426
});
2527

26-
THEN( "File is open" ) {
27-
REQUIRE( f != nullptr );
28-
}
29-
3028
WHEN( "Decompress is called on the decoder" ) {
3129
uint8_t buf[64];
3230
size_t read_bytes;

0 commit comments

Comments
 (0)