summaryrefslogtreecommitdiff
path: root/test/test_encoding.c
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-03-04 09:51:22 -0500
committerjakob <jakob@memeware.net>2017-03-04 09:51:22 -0500
commitc6e28ae622cfd86f5b0ca796d27953ac8ecd37b1 (patch)
tree10ee1736889d33ad4cb1c92f8da7d011fd0df21d /test/test_encoding.c
parent79db4fa8975cd445958f88a046c75243300b7b69 (diff)
Updated test code
Diffstat (limited to 'test/test_encoding.c')
-rw-r--r--test/test_encoding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_encoding.c b/test/test_encoding.c
index f5c91c2..50a0466 100644
--- a/test/test_encoding.c
+++ b/test/test_encoding.c
@@ -26,9 +26,9 @@
char *test_decode_utf16le(void) {
- char *in = "\x41\x00\x00\x00", *out = malloc(4);
- utf16le_decode(in, out, 4);
- mu_assert("UTF16-LE decoding failure", !strcmp(out, "A"));
+ char *in = "\x41\x00\x42\x00\x43\x00\x00\x00", *out = malloc(8);
+ utf16le_decode(in, out, 8);
+ mu_assert("UTF16-LE decoding failure", !strcmp(out, "ABC"));
free(out);
return NULL;
}