[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help with function handle tests

From: Ray Daniel Zimmerman
Subject: Re: need help with function handle tests
Date: Mon, 16 Mar 2020 17:00:27 +0000

Hadn’t seen a response yet, so here you go. I had to change all instances of printf() to fprintf() first, but here are the results.


On Mar 13, 2020, at 10:23 AM, John W. Eaton <address@hidden> wrote:

On 3/11/20 10:46 PM, Kai Torben Ohlhus wrote:

There were two typos in "testscript.m" (line 84 and 168)
- if (clear_functions_after_main_dir)
+ if (clear_function_after_main_dir)
- cd (top_dir)
+ cd (topdir)
> After these fixes, I run all the cells.  If an error occurred I ran
   clear all
   cd ..
and started in the next cell (to avoid double execution) until
completion.  Output attached.

Thanks.  I had some trouble making sense of the output, probably mostly due to not writing the scripts to be clear enough about what was being executed.  Also, it doesn't help that there was no attempt at error recovery.  So I'm attaching another attempt that I hope will produce clearer output and not fail on any errors when using the function handles (calls to functions or the handles themselves are now  inside try/catch blocks).

I would appreciate it if someone could unpack the attached tar file, execute the run_tests function in the top-level directory, and post the resulting diary file.




Attachment: diary
Description: diary

reply via email to

[Prev in Thread] Current Thread [Next in Thread]