Commit Graph
16 Commits
Author SHA1 Message Date
Kare Morstol 755d1aa563 run() returns RunOutput instead of String. Supports || and &&. 2017-03-29 19:59:26 +02:00
Kare Morstol bcaab22767 Require encoding for FileHandle.readSome and .read. Documentation. 2017-03-01 18:25:58 +01:00
Kare Morstol fa70e419dd Enable building for iOS. Just the Stream part. So FileSmith can use it.
The rest cannot build on iOS because it uses Process.
Move the Stream files into its own directory.
2017-02-28 01:45:24 +01:00
Kare Morstol 7204dbdb3a @discardableResult declared on a function returning Void is unnecessary. 2017-02-21 22:11:54 +01:00
Kare Morstol 62780a880a String(contentsOfFile:) not implemented on Linux, use String(contentsOfFile: encoding:) instead. 2017-01-31 00:41:29 +01:00
Kare Morstol 43a726bbba Fix testOpenForOverWritingCreatesIntermediateDirectory. 2017-01-30 20:37:13 +01:00
Kare Morstol 11b979c690 Fix AssertNoThrow silencing test failures. Cleanup test helping code. 2017-01-30 20:27:12 +01:00
Miguel Angel Quinones Garcia 93b2b36d68 Fix intermediate directories not created (#32)
* Fix intermediate directories not created

If the destination path contains nonexisting directories, the function would fail where otherwise it is expected to create all directories in the path.

* Add test for creation with intermediate directories
2017-01-30 20:13:49 +01:00
Kare Morstol ce44afe306 Turn WriteableStream and ReadableStream into protocols.
* Remove WriteableStream.writeln, use .print instead.
* Work around compiler crash on Linux.
2017-01-09 17:43:53 +01:00
kareman eea3cd2d61 Simplify WriteableStream.print 2016-11-01 21:46:46 +01:00
kareman 6acfe7f870 Add WriteableStream.print 2016-11-01 21:25:14 +01:00
kareman 221c9892bc Replace OSX with macOS 2016-11-01 20:37:47 +01:00
kareman 8ce6100286 Add FileHandle.nullDev, cross-platformise some unit test. 2016-10-16 20:51:51 +02:00
kareman 0f0ddfb9ea Add tests on Linux 2016-10-15 00:06:05 +02:00
kareman ef98b8da07 Get it to build on Linux. No tests yet. 2016-10-13 19:17:40 +02:00
Kare Morstol ed36e0228f Add ‘Tests’ suffix to test folders. As required by Swift Package Manager. 2016-10-07 22:11:37 +02:00