diff options
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mu.arc.t b/mu.arc.t index a4077c7a..814a9417 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -776,7 +776,21 @@ (prn "F - 'arg' with index can access function call arguments out of order")) ;? (quit) -; todo: test that too few args throws an error +(reset) +(new-trace "new-fn-arg-missing") +(add-fns + '((test1 + ((4 integer) <- arg) + ((5 integer) <- arg)) + (main + (test1 (1 literal)) + ))) +(run 'main) +;? (prn memory*) +(if (~iso memory* (obj 4 1)) + (prn "F - missing 'arg' doesn't cause error")) +;? (quit) + ; how should errors be handled? will be unclear until we support concurrency and routine trees. (reset) |