5 #define yenc_single(c, ret) \
9 if (conv >= 256) conv -= 256; \
14 string yenc_it = chr2str(conv); \
24 string yenc_it = chr2str('=', conv); \
31 #define ydec_single(stringiter, ret) \
33 int conv = STRING_ITERATOR_GET(stringiter); \
40 conv = STRING_ITERATOR_GET(stringiter); \
43 if (conv < 42) conv += 256; \
51 for (int i = 0; i <= 255; ++i)
55 string fragment = string_null;
56 yenc_single(expect, fragment);
59 STRING_ITERATOR(fragmentiterator, fragment, 0);
60 ydec_single(fragmentiterator, encdec);
62 TEST_Check(encdec == expect);