hare

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

commit ecc24235e4bfd156ca28aadbaeb4dc6e0db8024a
parent 96af158a3bfed026d400b64413f82bdd97ad3ad6
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Dec 2023 21:17:46 -0500

test: display special msg when no tests are run

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

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

diff --git a/test/+test.ha b/test/+test.ha @@ -99,6 +99,10 @@ export @symbol("__test_main") fn main() size = { }; }; }; + if (len(enabled_tests) == 0) { + fmt::println("No tests run")!; + return 0; + }; let maxname = 0z; for (let i = 0z; i < len(enabled_tests); i += 1) {