hare

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

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

strings: test concat with only one argument

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

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

diff --git a/strings/concat.ha b/strings/concat.ha @@ -34,6 +34,10 @@ export fn concat(strs: str...) str = { let s = concat(); defer free(s); assert(s == ""); + + let s = concat("hello"); + defer free(s); + assert(s == "hello"); }; // Joins several strings together by placing a delimiter between them. The