Skip to content

Commit e29edb0

Browse files
committedApr 21, 2022
add_test_rle_success
1 parent 3c32e70 commit e29edb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/Rle.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace qml {
121121
file_dst = fopen(dst.c_str(), "wb");
122122
fwrite(buffer_dst, sizeof(char), len_dst, file_dst);
123123
fclose(file_dst);
124-
printf("%d %d\n", len_src, len_dst);
124+
// printf("%d %d\n", len_src, len_dst);
125125

126126
free(buffer_src);
127127
free(buffer_dst);
@@ -152,4 +152,4 @@ namespace qml {
152152
free(buffer_dst);
153153
return 1;
154154
}
155-
}
155+
}

‎test_rle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
int main(int argc, char** argv) {
88
qml::RLE_Encode* en = new qml::RLE_Encode();
99
qml::RLE_Decode* de = new qml::RLE_Decode();
10-
en->file_encode(std::string(argv[1]), false, std::string(argv[1]));
10+
en->file_encode(std::string(argv[1]), false, std::string(argv[2]));
1111
de->file_decode(std::string(argv[2]), false, "de_" + std::string(argv[1]));
1212
return 0;
1313
}

0 commit comments

Comments
 (0)
Please sign in to comment.