extend("test")
extend("file")

describe("write accepting a stream from read when using compose", () => {

  it("should read from a generated lorem ipsum file and write to tmp file via compose", () => {
    loremPath = test:lorem_file(50)
    outputPath = test:unique_filename()

    compose(
      file:write(outputPath),
      file:read
    )( loremPath )

    #file_contents_equal(outputPath, "Lorem ipsum")

  })
})

