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

/test/language/unclassified/jvm/test_jvm9.e

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