display_greater.scm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ;;; GNU Mes --- Maxwell Equations of Software
  2. ;;; Copyright © 2016,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Mes.
  5. ;;;
  6. ;;; GNU Mes is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Mes is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Mes. If not, see <http://www.gnu.org/licenses/>
  18. ;; Setup output file
  19. (set-current-output-port (open-output-file "test/results/test006.answer"))
  20. ;; Test >
  21. (display "Test >\n")
  22. (display (> 4 2 1))
  23. (display #\newline)
  24. (display (> 1 2 4))
  25. (display #\newline)
  26. (display (> 4 2 4))
  27. (display #\newline)
  28. ;; Test <
  29. (display "Test <\n")
  30. (display (< 1 2 4))
  31. (display #\newline)
  32. (display (< 4 2 1))
  33. (display #\newline)
  34. (display (< 4 2 4))
  35. (display #\newline)
  36. ;; Test =
  37. (display "Test =\n")
  38. (display (= 4 4 4))
  39. (display #\newline)
  40. (display (= 1 4 4))
  41. (display #\newline)
  42. (display (= 4 4 1))
  43. (display #\newline)
  44. (display (= 4 1 4))
  45. (display #\newline)
  46. (exit 0)