6 #define yenc_single(c, ret) \
10 if (conv >= 256) conv -= 256; \
15 string yenc_it = chr2str(conv); \
25 string yenc_it = chr2str('=', conv); \
32 #define ydec_single(stringiter, ret) \
34 int conv = STRING_ITERATOR_GET(stringiter); \
41 conv = STRING_ITERATOR_GET(stringiter); \
44 if (conv < 42) conv += 256; \
52 for (int i = 0; i <= 255; ++i)
57 yenc_single(expect, fragment);
60 STRING_ITERATOR(fragmentiterator, fragment, 0);
61 ydec_single(fragmentiterator, encdec);
63 TEST_Check(encdec == expect);