harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 47184d96bec4d1321339c4b8732c217fe944dfd8
parent dd644f8033fa5bf69e2d738d518565a9fafe0843
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 23 Jan 2021 16:45:26 -0500

tests/18-match: use array for test cases

Diffstat:
Mtests/18-match.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/18-match.ha b/tests/18-match.ha @@ -1,5 +1,5 @@ fn tagged() void = { - let cases: [](int | uint | str) = [10, 10u, "hello"]; + let cases: [3](int | uint | str) = [10, 10u, "hello"]; let expected = [1z, 2z, 5z]; for (let i = 0z; i < len(cases); i += 1z) { let y: size = match (cases[i]) {