all repos — hex @ fbc7a266a3fe1ae6b5463d803428e88803051313

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Added more tests.
h3rald h3rald@h3rald.com
Wed, 11 Dec 2024 07:42:24 +0100
commit

fbc7a266a3fe1ae6b5463d803428e88803051313

parent

55c99738f7562ea0355f8be655f94262c7957b22

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M scripts/test.hexscripts/test.hex

@@ -212,6 +212,12 @@ ((0x4 len) (error) try "Symbol 'len' requires a quotation or a string" ==)

(("abc" "b" get) (error) try "Index must be an integer" ==) (((0x4 "aa" test) "b" get) (error) try "Index must be an integer" ==) ;116 + + (("abc" 0x3 get) (error) try "Index out of range" ==) + (((0x2) 0x2 get) (error) try "Index out of range" ==) + ((() 0x0 get) (error) try "Index out of range" ==) + ((0x4 0x4 get) (error) try "Symbol 'get' requires a quotation or a string" ==) + ;120 ) "tests" :