PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/expanded/test_expanded18.e

http://github.com/tybor/Liberty
Specman e | 71 lines | 44 code | 4 blank | 23 comment | 0 complexity | 71f9d0df63b69563c402f8eaded11770 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_EXPANDED18
 5
 6insert
 7   EIFFELTEST_TOOLS
 8
 9create {ANY}
10   make
11
12feature {ANY}
13   make
14      local
15         a: AUX_EXPANDED18A; b: AUX_EXPANDED18B; c: AUX_EXPANDED18C
16      do
17         ---- Original:
18         -- c: expanded AUX_EXPANDED18C
19         assert(a.value1 = 0)
20         assert(a.value2 = '%/0/')
21         a.make
22         assert(a.value1 = 1)
23         assert(a.value2 = 'A')
24         create a
25         assert(a.value1 = 0)
26         assert(a.value2 = '%/0/')
27         a.make
28         create {AUX_EXPANDED18A} a
29         assert(a.value1 = 0)
30         assert(a.value2 = '%/0/')
31         assert(b.value1 = 1)
32         assert(b.value2 = 'A')
33         b.clear
34         assert(b.value1 = 0)
35         assert(b.value2 = '%/0/')
36         create b.make
37         assert(b.value1 = 1)
38         assert(b.value2 = 'A')
39         b.clear
40         create {AUX_EXPANDED18B} b.make
41         assert(b.value1 = 1)
42         assert(b.value2 = 'A')
43         assert(c.value1 = 1)
44         assert(c.value2 = 'A')
45         c.clear
46         assert(c.value1 = 0)
47         assert(c.value2 = '%/0/')
48         create c.make
49         assert(c.value1 = 1)
50         assert(c.value2 = 'A')
51      end
52
53end -- class TEST_EXPANDED18
54--
55-- ------------------------------------------------------------------------------------------------------------------------------
56-- Copyright notice below. Please read.
57--
58-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
59-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
60-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
61-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
62-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
63-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
64--
65-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
66-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
67--
68-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
69--
70-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
71-- ------------------------------------------------------------------------------------------------------------------------------