summaryrefslogtreecommitdiff
path: root/tnslc/vector_test.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-07-26 00:48:43 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-07-26 00:48:43 -0400
commit7f0e6ea654037eda11c2e84946f99bad3f1ab6e4 (patch)
tree88aae0b23c8cdcaaa4a80daf44f87e1969b71de4 /tnslc/vector_test.tnsl
parentceaeb8df4d9bf9b518239ea623d813add5a71072 (diff)
Division fixes
Diffstat (limited to 'tnslc/vector_test.tnsl')
-rw-r--r--tnslc/vector_test.tnsl25
1 files changed, 16 insertions, 9 deletions
diff --git a/tnslc/vector_test.tnsl b/tnslc/vector_test.tnsl
index bfb41cc..ee4a25c 100644
--- a/tnslc/vector_test.tnsl
+++ b/tnslc/vector_test.tnsl
@@ -14,15 +14,22 @@
Vector vec
vec.start(1)
- uint8 a = _alert{0}
- vec.push(~a)
- vec.push(~a)
- a = _alert{len _alert - 2}
- vec.push(~a)
- a = 0
- vec.push(~a)
- _printf(vec.get(0))
- _printf(vec.get(0))
+
+ uint8 buf = 0
+ /; loop (int i = 0; i < 20) [i++]
+ buf = 'A' + i
+ vec.push(~buf)
+ ;/
+
+ buf = 0
+ vec.push(~buf)
+
+ _printf(vec.dat)
+
+ /; loop (int i = 0; i < 21) [i++]
+ vec.pop()
+ ;/
+
vec.clean()
return 0
;/ \ No newline at end of file