bigger alphabet
This commit is contained in:
parent
e3bba13fd2
commit
bfa85a09c3
@ -40,7 +40,7 @@ char* decode(const char* output) {
|
|||||||
#define MAX_STR_LEN 3
|
#define MAX_STR_LEN 3
|
||||||
|
|
||||||
TEST(Runlength, EncodeDecode) {
|
TEST(Runlength, EncodeDecode) {
|
||||||
char* original = DeepState_CStrUpToLen(MAX_STR_LEN, "ab");
|
char* original = DeepState_CStrUpToLen(MAX_STR_LEN, "abcdefghijklmnopqrstuvwxyz0123456789");
|
||||||
char* encoded = encode(original);
|
char* encoded = encode(original);
|
||||||
char* roundtrip = decode(encoded);
|
char* roundtrip = decode(encoded);
|
||||||
ASSERT (strncmp(roundtrip, original, MAX_STR_LEN) == 0) <<
|
ASSERT (strncmp(roundtrip, original, MAX_STR_LEN) == 0) <<
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user