/tutorial/triangle/version3/example2.e

http://github.com/tybor/Liberty · Specman e · 22 lines · 17 code · 5 blank · 0 comment · 0 complexity · 8a3d4074bdeb5e43e8eaa86ee8e42d16 MD5 · raw file

  1. class EXAMPLE2
  2. create {ANY}
  3. main
  4. feature {ANY}
  5. main
  6. local
  7. t: TRIANGLE
  8. do
  9. create t.make(create {POINT}.make(1.0, 2.0), create {POINT}.make(3.0, 4.0), create {POINT}.make(5.0, 6.0))
  10. t.display_on(io)
  11. io.put_string("[
  12. Also have a look at the OUTPUT_STREAM interface.
  13. Type:
  14. short OUTPUT_STREAM
  15. ]")
  16. end
  17. end -- class EXAMPLE2