hare

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

commit 346a20df26943585d5b7c509b3532bee3eff1f55
parent 1a2844156211254ef1c0e069c90e3e524db3d46b
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri,  8 Apr 2022 15:13:41 -0400

fmt: test bsprint

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

Diffstat:
Mfmt/fmt.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/fmt/fmt.ha b/fmt/fmt.ha @@ -511,6 +511,7 @@ fn scan_parametric_modifiers(iter: *strings::iterator, pi: *paramindex) void = { @test fn fmt() void = { let buf: [1024]u8 = [0...]; + assert(bsprint(buf, "hello world") == "hello world"); assert(bsprintf(buf, "hello world") == "hello world"); assert(bsprintf(buf, "{} {}", "hello", "world") == "hello world"); assert(bsprintf(buf, "{0} {1}", "hello", "world") == "hello world");