PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/test/language/unclassified/test_rename4.e

http://github.com/tybor/Liberty
Specman e | 58 lines | 31 code | 5 blank | 22 comment | 1 complexity | d5cc554c5adb88c468addca96a26af89 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 TEST_RENAME4
 5
 6create {}
 7   make
 8
 9feature {ANY}
10   make
11      local
12         aux_rename4a: AUX_RENAME4A; aux_rename4b: AUX_RENAME4B; aux_rename4c: AUX_RENAME4C
13      do
14         create aux_rename4c.make
15         aux_rename4a := aux_rename4c
16         aux_rename4b := aux_rename4c
17         assert(aux_rename4a.mema = aux_rename4b.memb)
18         assert(aux_rename4a.mema = aux_rename4c.memc)
19         assert(aux_rename4b.memb = aux_rename4a.mema)
20         assert(aux_rename4b.memb = aux_rename4c.memc)
21         assert(aux_rename4c.memc = aux_rename4a.mema)
22         assert(aux_rename4c.memc = aux_rename4b.memb)
23      end
24
25feature {}
26   assert (b: BOOLEAN)
27      do
28         cpt := cpt + 1
29         if not b then
30            std_output.put_string("TEST_RENAME4: ERROR Test # ")
31            std_output.put_integer(cpt)
32            std_output.put_string("%N")
33         else
34            -- std_output.put_string("Yes%N");
35         end
36      end
37
38   cpt: INTEGER
39
40end -- class TEST_RENAME4
41--
42-- ------------------------------------------------------------------------------------------------------------------------------
43-- Copyright notice below. Please read.
44--
45-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
46-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
47-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
48-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
49-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
50-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
51--
52-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
53-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
54--
55-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
56--
57-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
58-- ------------------------------------------------------------------------------------------------------------------------------