Mercurial > hg > ltpda
comparison m-toolbox/classes/tests/@Assert/Assert.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % ASSERT A set of assert methods. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: ASSERT A set of assert methods. | |
5 % | |
6 % VERSION: $Id: Assert.m,v 1.1 2011/06/20 16:32:56 ingo Exp $ | |
7 % | |
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
9 | |
10 classdef Assert < handle | |
11 | |
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
13 % Property definition % | |
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
15 | |
16 %---------- Public (read/write) Properties ---------- | |
17 properties | |
18 end | |
19 | |
20 %---------- Constant Properties ---------- | |
21 properties (Constant=true) | |
22 errMsgId = 'Assertion:Failed'; | |
23 defaultErrMsg = 'Assertion failed.'; | |
24 end | |
25 | |
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
27 % Constructor % | |
28 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
29 | |
30 methods | |
31 function obj = Assert(varargin) | |
32 end | |
33 end | |
34 | |
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
36 % Methods (public) % | |
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
38 | |
39 methods (Access=public) | |
40 end | |
41 | |
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
43 % Methods (hidden) % | |
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
45 | |
46 methods (Hidden = true) | |
47 varargout = addlistener(varargin) | |
48 varargout = notify(varargin) | |
49 varargout = delete(varargin) | |
50 varargout = findobj(varargin) | |
51 varargout = findprop(varargin) | |
52 varargout = eq(varargin) | |
53 varargout = ne(varargin) | |
54 varargout = ge(varargin) | |
55 varargout = gt(varargin) | |
56 varargout = le(varargin) | |
57 varargout = lt(varargin) | |
58 end | |
59 | |
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
61 % Methods (protected) % | |
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
63 | |
64 methods (Access = protected) | |
65 end | |
66 | |
67 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
68 % Methods (static) % | |
69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
70 | |
71 methods (Static) | |
72 varargout = fail(varargin) | |
73 | |
74 varargout = doubleEquals(varargin) | |
75 varargout = doubleEqualsWithAccuracy(varargin) | |
76 % varargout = assertDoubleNotEquals(varargin) | |
77 % varargout = assertEmpty(varargin) | |
78 % varargout = assertFalse(varargin) | |
79 % varargout = assertNotEmpty(varargin) | |
80 % varargout = assertNotSame(varargin) | |
81 % varargout = assertObjEquals(varargin) | |
82 varargout = objectEquals(varargin) | |
83 varargout = objectEqualsWithException(varargin) | |
84 % varargout = assertSame(varargin) | |
85 varargout = stringEquals(varargin) | |
86 % varargout = assertStringNotEquals(varargin) | |
87 % varargout = assertThrowsException(varargin) | |
88 varargout = true(varargin) | |
89 end | |
90 | |
91 end | |
92 |