stream.es.tst 363 B

12345678910111213
  1. /*
  2. stream.tst - Http tests using streams
  3. */
  4. const HTTP = tget('TM_HTTP') || "127.0.0.1:8080"
  5. let http: Http = new Http
  6. http.get(HTTP + "/big.jst")
  7. ts = new TextStream(http)
  8. lines = ts.readLines()
  9. ttrue(lines.length == 801)
  10. ttrue(lines[0].contains("aaaaabbb") && lines[0].contains("0 "))
  11. ttrue(lines[799].contains("aaaaabbb") && lines[799].contains("799"))