hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 3f85e4ea249e260e4b9bdff8e01571370781fca6
parent ef9a86fe5378d52017fdf40640f81286d9927a8e
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Dec 2023 21:14:42 -0500

strings: test join with only one variadic argument

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mstrings/concat.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/strings/concat.ha b/strings/concat.ha @@ -73,4 +73,7 @@ export fn join(delim: str, strs: str...) str = { defer free(s); assert(s == ""); + let s = join(".", "a"); + defer free(s); + assert(s == "a"); };