PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/unclassified/test_mm02.e

http://github.com/tybor/Liberty
Specman e | 45 lines | 17 code | 4 blank | 24 comment | 0 complexity | 50f1ffd81e6f2089b7b94ad61ba523ee 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_MM02
 5   --
 6   -- SZ:412: From mwm-keyword-se.f78c7c@mired.org (Mike Meyer)
 7   --
 8
 9insert
10   EIFFELTEST_TOOLS
11
12create {}
13   make
14
15feature {ANY}
16   make
17      local
18         real_extended: REAL_EXTENDED; view: STRING
19      do
20         real_extended := real_extended.one
21         assert(real_extended = 1.0)
22         view := {REAL_EXTENDED 1.0}.to_string_scientific(1)
23         assert(view.is_equal("1.0e+00"))
24         assert({REAL_EXTENDED 1.0}.to_string.is_equal("1.000000"))
25      end
26
27end -- class TEST_MM02
28--
29-- ------------------------------------------------------------------------------------------------------------------------------
30-- Copyright notice below. Please read.
31--
32-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
33-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
34-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
35-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
36-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
37-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
38--
39-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
40-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
41--
42-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
43--
44-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
45-- ------------------------------------------------------------------------------------------------------------------------------