Skip to content

Commit c977df2

Browse files
committed
[fix] offset
1 parent 7c8915d commit c977df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ TEST test_utf8_to_utf32(void) {
7979
ASSERT_EQ(converted_long.return_code, SIMDUTF_SUCCESS);
8080
ASSERT_EQ(converted_long.read_len, len_long);
8181
ASSERT_EQ(converted_long.written_len, 240);
82-
ASSERT_EQ(utf32_output_long[converted_long.written_len - 14], 233);
82+
ASSERT_EQ(utf32_output_long[converted_long.written_len - 11], 233);
8383

8484
memset(utf32_output, 0, utf32_output_len * sizeof(uint32_t));
8585

8686
converted_long = convert_valid_utf8_to_utf32(data_long, len_long, utf32_output_long, utf32_output_len_long);
8787
ASSERT_EQ(converted_long.return_code, SIMDUTF_SUCCESS);
8888
ASSERT_EQ(converted_long.read_len, len_long);
8989
ASSERT_EQ(converted_long.written_len, 240);
90-
ASSERT_EQ(utf32_output_long[converted_long.written_len - 14], 233);
90+
ASSERT_EQ(utf32_output_long[converted_long.written_len - 11], 233);
9191

9292
aligned_free(data);
9393
aligned_free(utf32_output);

0 commit comments

Comments
 (0)