/red-system/tests/source/compiler/output-test.r

http://github.com/dockimbel/Red · R · 20 lines · 15 code · 5 blank · 0 comment · 0 complexity · 689b3469d571e7fd5c689f0615b16d79 MD5 · raw file

  1. REBOL [
  2. Title: "Test output from Red/System programs"
  3. File: %output-test.r
  4. License: "BSD-3 - https://github.com/dockimbel/Red/blob/master/BSD-3-License.txt"
  5. ]
  6. change-dir %../ ;; revert to tests/ directory from runnable/
  7. ~~~start-file~~~ "output"
  8. --test-- "hello"
  9. --compile-and-run %source/compiler/hello.reds
  10. --assert none <> find qt/output "hello"
  11. --assert none <> find qt/output "world"
  12. --test-- "empty"
  13. --compile-and-run %source/compiler/empty.reds
  14. --assert qt/output = ""
  15. ~~~end-file~~~