t5.lua 351 B

123456789101112131415161718192021222324252627282930
  1. source = {}
  2. sink = {}
  3. pump = {}
  4. filter = {}
  5. -- source.chain
  6. dofile("ex6.lua")
  7. -- source.file
  8. dofile("ex5.lua")
  9. -- encode
  10. require"mime"
  11. encode = mime.encode
  12. -- sink.chain
  13. require"ltn12"
  14. sink.chain = ltn12.sink.chain
  15. -- wrap
  16. wrap = mime.wrap
  17. -- sink.file
  18. sink.file = ltn12.sink.file
  19. -- pump.all
  20. dofile("ex10.lua")
  21. -- run test
  22. dofile("ex11.lua")