numeric alphabet

This commit is contained in:
Alex Groce 2019-01-01 12:54:59 -07:00
parent 46f0eeb4b4
commit c67b0329b6

View File

@ -40,7 +40,7 @@ char* decode(const char* output) {
#define MAX_STR_LEN 3
TEST(Runlength, EncodeDecode) {
char* original = DeepState_CStrUpToLen(MAX_STR_LEN, "abcdef0123456789");
char* original = DeepState_CStrUpToLen(MAX_STR_LEN, "0123456789");
char* encoded = encode(original);
char* roundtrip = decode(encoded);
ASSERT (strncmp(roundtrip, original, MAX_STR_LEN) == 0) <<