PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/assertion/aux_all_check_test1.e

http://github.com/tybor/Liberty
Specman e | 68 lines | 37 code | 10 blank | 21 comment | 0 complexity | 58f6cbce7081804f2d51b4b38f9e9359 MD5 | raw file
 1-- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
 2-- See the Copyright notice at the end of this file.
 3--
 4class AUX_ALL_CHECK_TEST1
 5
 6create {ANY}
 7   make
 8
 9feature {ANY}
10   require_count, ensure_count, invariant_count: INTEGER
11
12   do_require: BOOLEAN
13      do
14         require_count := require_count + 1
15         Result := True
16      end
17
18   do_ensure: BOOLEAN
19      do
20         ensure_count := ensure_count + 1
21         Result := True
22      end
23
24   do_invariant: BOOLEAN
25      do
26         invariant_count := invariant_count + 1
27         Result := True
28      end
29
30   make
31      do
32      end
33
34   foo
35      require
36         do_require
37      do
38      ensure
39         do_ensure
40      end
41
42   bar
43      do
44         foo
45      end
46
47invariant
48   do_invariant
49
50end -- class AUX_ALL_CHECK_TEST1
51--
52-- ------------------------------------------------------------------------------------------------------------------------------
53-- Copyright notice below. Please read.
54--
55-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
56-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
57-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
58-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
59-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
60-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
61--
62-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
63-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
64--
65-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
66--
67-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
68-- ------------------------------------------------------------------------------------------------------------------------------