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

/test/language/unclassified/jb/test_jb03.e

http://github.com/tybor/Liberty
Specman e | 71 lines | 39 code | 9 blank | 23 comment | 1 complexity | 70d414029b8eb1e289497747fa7ed311 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_JB03
 5   -- From: Jacques Bouchard <bouchard@mageos.com>
 6
 7inherit
 8   AUX_JB03
 9      rename p as a_p
10      redefine x
11      end
12
13create {}
14   make
15
16create {TEST_JB03}
17   default_create
18
19feature {ANY}
20   x: TEST_JB03
21
22   p: STRING
23      do
24         Result := "TEST.p"
25      end
26
27   make
28      do
29         create y
30         assert(y.generating_type = generating_type)
31         y := Current
32         assert(p.is_equal("TEST.p"))
33         assert(a_p.is_equal("AUX.p"))
34         assert(y.p.is_equal("TEST.p"))
35         assert(y.a_p.is_equal("AUX.p"))
36      end
37
38   assert (boolean: BOOLEAN)
39      do
40         cpt := cpt + 1
41         if not boolean then
42            sedb_breakpoint
43            std_output.put_string("TEST_JB03: ERROR Test # ")
44            std_output.put_integer(cpt)
45            std_output.put_string("%N")
46         else
47            --std_output.put_string("Yes%N")
48         end
49      end
50
51   cpt: INTEGER
52
53end -- class TEST_JB03
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-- ------------------------------------------------------------------------------------------------------------------------------