/test/language/unclassified/jb/test_jbollo1.e

http://github.com/tybor/Liberty · Specman e · 56 lines · 24 code · 5 blank · 27 comment · 0 complexity · 47cfa45e8c2837e1a5c4919030be45b2 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. --
  4. class TEST_JBOLLO1
  5. --
  6. -- Following a discussion with Jose Bollo in our mailing list.
  7. --
  8. insert
  9. EIFFELTEST_TOOLS
  10. create {}
  11. make
  12. feature {ANY}
  13. n: INTEGER_8 9
  14. make
  15. local
  16. integer: INTEGER_32
  17. do
  18. integer := 10000 * 2
  19. check
  20. integer = 20000
  21. end
  22. integer := 10000 * 2 ^ 9
  23. check
  24. integer = 5120000
  25. end
  26. -- *** Faut il aussi accepter ce qui suit ... je pense que oui... Dom 30 mars 2005 ***
  27. -- integer := 10000*2 ^ n
  28. -- ***
  29. check
  30. integer = 5120000
  31. end
  32. end
  33. end -- class TEST_JBOLLO1
  34. --
  35. -- ------------------------------------------------------------------------------------------------------------------------------
  36. -- Copyright notice below. Please read.
  37. --
  38. -- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
  39. -- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
  40. -- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
  41. -- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
  42. -- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
  43. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  44. --
  45. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  46. -- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  47. --
  48. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  49. --
  50. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  51. -- ------------------------------------------------------------------------------------------------------------------------------