hare

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

commit 831218a320a0ba436deb87f7aff9c0e508a1b873
parent 26bf49970aca1fa4cb4efe9c0884081b11b5ad7f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  4 Feb 2021 14:20:24 -0500

Improve test names

Diffstat:
Mstrconv/itos.ha | 2+-
Mstrconv/utos.ha | 2+-
Mstrings/iter.ha | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/strconv/itos.ha b/strconv/itos.ha @@ -58,7 +58,7 @@ export fn i32tos(i: i32) const str = i64tos(i: i64); // duplicate the result. export fn itos(i: int) const str = i64tos(i: i64); -@test fn test_itos() void = { +@test fn itos() void = { // I64_MAX: https://todo.sr.ht/~sircmpwn/hare-v2/185 const samples = [ 1234i64, diff --git a/strconv/utos.ha b/strconv/utos.ha @@ -61,7 +61,7 @@ export fn ztos(z: size) const str = u64tos(z: u64); // duplicate the result. export fn uptrtos(uptr: uintptr) const str = u64tos(uptr: u64); -@test fn test_utos() void = { +@test fn utos() void = { // U64_MAX: https://todo.sr.ht/~sircmpwn/hare-v2/185 const samples = [ 1234u64, diff --git a/strings/iter.ha b/strings/iter.ha @@ -21,7 +21,7 @@ export fn iter_str(iter: *iterator) str = { return from_utf8(iter.src[iter.offs..]); }; -@test fn iter_test() void = { +@test fn iter() void = { let s = iter("こんにちは"); const expected1 = ['こ', 'ん']; for (let i = 0z; i < len(expected1); i += 1z) {