{"id":252,"date":"2009-03-19T07:00:07","date_gmt":"2009-03-19T07:00:07","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/2009\/03\/19\/mtest-update-plus-help-browser-integration-info\/"},"modified":"2016-09-10T06:39:37","modified_gmt":"2016-09-10T10:39:37","slug":"mtest-update-plus-help-browser-integration-info","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2009\/03\/19\/mtest-update-plus-help-browser-integration-info\/","title":{"rendered":"MTEST update, plus Help Browser integration info"},"content":{"rendered":"<p>\r\nEarlier this week I posted an update to my MTEST unit test framework on the File Exchange. I wasn't completely happy with my assertion function for comparing floating-point numbers using a tolerance, so I added two new ones: <tt>assertElementsAlmostEqual<\/tt> and <tt>assertVectorsAlmostEqual<\/tt>. I also fixed a problem with the way <tt>mtest<\/tt> was scanning the current directory in order to find test files.\r\n<\/p>\r\n\r\n<p>\r\nLast week someone asked me about integrating the MTEST doc in the MATLAB Help Browser, so I looked into that. It is possible, as it turns out. There's a detailed explanation of how to do that in the MATLAB Helper Browser documentation. See the section on <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009a\/techdoc\/matlab_env\/bruby4n-1.html#f3-40511\">Adding HTML Help Files for Your Own Toolbox<\/a>. Using this explanation, I was able to have the MTEST documentation appear in the Help Browser. If you distribute your own MATLAB code for others you use, you might want to give this a try.\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>\r\nEarlier this week I posted an update to my MTEST unit test framework on the File Exchange. I wasn't completely happy with my assertion function for comparing floating-point numbers using a... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2009\/03\/19\/mtest-update-plus-help-browser-integration-info\/\">read more >><\/a><\/p>","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/252"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":2274,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/252\/revisions\/2274"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}