diff options
Diffstat (limited to 'mixlib')
-rw-r--r-- | mixlib/testsuite/mix_types_t.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mixlib/testsuite/mix_types_t.c b/mixlib/testsuite/mix_types_t.c index bd4a2bc..694038e 100644 --- a/mixlib/testsuite/mix_types_t.c +++ b/mixlib/testsuite/mix_types_t.c @@ -171,6 +171,14 @@ test_mix_char_(void) if ( (k+1)%5 == 0 ) g_print("\n"); g_assert( mchar == mix_ascii_to_char(achar) ); } + + g_print("\nchar <-> byte conversions...\n"); + + for (k = 0; k < MIX_CHAR_MAX + 1; ++k) { + mix_byte_t c = mix_byte_new (k); + g_assert (c == mix_byte_to_char (mix_char_to_byte (c))); + } + g_print("\n"); } |