Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | James Fiedler <jrfiedler@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: testing code in Mata ? |
Date | Thu, 3 Oct 2013 12:37:04 -0500 |
Hello, Is there anything for writing code tests in Mata beyond -assert()-, -reldif()-, and associated functions? I'm starting to write a package that would, for example, allow the user to verify that a Mata function exits with an error when expected to, or does a small amount of work to help diagnose the cause of a failed assertion. I'm wondering if anything like this already exists. If anyone has references for best practices in testing Mata code, that would be appreciated too. James * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/