mirror of
https://github.com/OldUnreal/libxmp.git
synced 2026-04-02 21:37:43 -07:00
12 lines
291 B
C
12 lines
291 B
C
#include "test.h"
|
|
|
|
TEST(test_string_adjustment)
|
|
{
|
|
char string[80] = { 'h', 'e', 'l', 'l', 'o', 1, 2, 30, 31, 127,
|
|
(char)128, 'w', 'o', 'r', 'l', 'd', ' ', ' ', ' ', 0 };
|
|
|
|
libxmp_adjust_string(string);
|
|
fail_unless(strcmp(string, "hello world") == 0, "adjustment error");
|
|
}
|
|
END_TEST
|