Mercurial > hg > munit
view TestCase.m @ 0:33654ef5c7ea
Import
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 27 Dec 2011 19:50:44 +0100 |
parents | |
children |
line wrap: on
line source
classdef TestCase < handle properties end % properties methods function tests = listTests(self) tests = {}; m = methods(self); for kk = 1:numel(m) if strncmp(m{kk}, 'test_', 5) tests = [ tests m(kk) ]; end end end function setUpClass(self) end function tearDownClass(self) end function setUp(self) end function tearDown(self) end function test_foo(self) true; end function test_aaa(self) true; end function test_bbb(self) true; end function test_bar(self) assert(false, 'bar'); end end % methods end