harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9df76fa33503566a65a893dc5f1c05f1d22a20e4
parent 5101c9750507c9700bc7787c66831039064dceee
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 11 Jan 2021 15:06:13 -0500

tests/04-strings: style

Diffstat:
Mtests/04-strings.ha | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/04-strings.ha b/tests/04-strings.ha @@ -41,8 +41,10 @@ fn storage() void = { fn concat() void = { const s = "Hell" "o, " "wor" "ld!"; const t = s: *const char: *[*]u8; - const expected = ['H', 'e', 'l', 'l', 'o', ',', ' ', - 'w', 'o', 'r', 'l', 'd', '!']; + const expected = [ + 'H', 'e', 'l', 'l', 'o', ',', ' ', + 'w', 'o', 'r', 'l', 'd', '!', '\0', + ]; for (let i = 0z; i < len(expected); i += 1z) { assert(t[i] == expected[i]: u32: u8); };