ta_out.nim 556 B

12345678910111213141516171819202122232425262728293031323334
  1. discard """
  2. output: '''
  3. start ta_out
  4. to stdout
  5. to stdout
  6. to stderr
  7. to stderr
  8. to stdout
  9. to stdout
  10. end ta_out
  11. '''
  12. """
  13. echo "start ta_out"
  14. # This file is prefixed with an "a", because other tests
  15. # depend on it and it must be compiled first.
  16. stdout.writeLine("to stdout")
  17. stdout.flushFile()
  18. stdout.writeLine("to stdout")
  19. stdout.flushFile()
  20. stderr.writeLine("to stderr")
  21. stderr.flushFile()
  22. stderr.writeLine("to stderr")
  23. stderr.flushFile()
  24. stdout.writeLine("to stdout")
  25. stdout.flushFile()
  26. stdout.writeLine("to stdout")
  27. stdout.flushFile()
  28. echo "end ta_out"