Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: testing code in Mata ?

From   James Fiedler <>
Subject   st: testing code in Mata ?
Date   Thu, 3 Oct 2013 12:37:04 -0500


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.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index