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