From 341087026c8998650d741ed8ea0f3f510198810a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Mar 2024 12:49:28 -0400 Subject: [PATCH] More array tests --- test/arrays.tm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/test/arrays.tm b/test/arrays.tm index 78f3d43..3e3cc87 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -50,11 +50,15 @@ if yes if yes >> [10*i for i in 5] = [10, 20, 30, 40, 50] -// if yes -// >> arr := @[10, 20] -// >> copy := arr[] -// >> arr:insert(30) -// >> arr -// = @[10, 20, 30] -// >> copy -// = [10, 20] + +>> [i*10 for i in 5] += [10, 20, 30, 40, 50] + +if yes + >> arr := @[10, 20] + >> copy := arr[] + >> arr:insert(30) + >> arr + = @[10, 20, 30] + >> copy + = [10, 20]