harec

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

commit bd606e7cc64ffad5cdbd2bcb67cceb7c3db8c262
parent 41e811569595232008a319c4131901b399d7549d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed,  4 Aug 2021 12:56:32 +0200

gen: expand tests/904-copy

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mtests/904-copy.ha | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/904-copy.ha b/tests/904-copy.ha @@ -36,8 +36,15 @@ export fn main() int = { assert(&a != &b); assert(a._16 == b._16); - // strings - // TODO: Need casts to examine string internals + // tuples + let a = (1, 2z, 3u8); + let b = a; + assert(a.0 == b.0); + assert(a.1 == b.1); + assert(a.2 == b.2); + + // strings, slices + // TODO: Need casts to examine internals return 0; };