Kare Morstol
e868d67050
Fix assert message.
2015-08-13 20:09:57 +02:00
Kare Morstol
b45ccd814c
Add unit tests for everything that doesn't result in printErrorAndExit.
...
As verified by the wonderful new code coverage feature of Xcode.
2015-08-09 23:07:27 +02:00
Kare Morstol
8bec5cf499
Eviscerate pretty much everything.
...
Will be changing a lot of the API, and do not want to have to change all the unit test and the rest of the code for every single change.
2015-07-19 22:49:39 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
e74189d008
Make tempdirectory a String instead of a NSURL.
...
The fact that NSURLs cannot be created with string literals makes them too cumbersome to use.
2014-12-02 00:17:39 +01:00
Kare Morstol
b33bfb9a5f
Move "temporaryDirectory" to new file Files.swift and rename it "tempdirectory".
...
Because it could be useful in scripts too.
2014-11-25 20:38:32 +01:00
Kare Morstol
90d10292c8
Add function "open(forWriting:, overwrite:)" for writing and appending to files.
...
Also added func "temporaryDirectory" to XCTestCase_Additions.
2014-11-25 01:15:36 +01:00
Kare Morstol
a377eb18fd
Add better error reporting to “open” function. Add public function "printErrorAndExit".
2014-11-23 23:31:06 +01:00
Kare Morstol
548e0740d4
Tidy up the code some more.
2014-10-30 00:28:20 +01:00
Kare Morstol
a144bc2650
Fix small typo and excessive whitespace.
2014-10-09 18:36:28 +02:00
Kare Morstol
7ef52b67bf
Move XCTestCase.pathForTestResource to a file common for all unit test targets.
2014-09-15 22:17:06 +02:00
Kare Morstol
676f91befb
Add assertion to test.
2014-09-09 19:32:02 +02:00
Kare Morstol
0b38585a1e
Add testReadFileLineByLine, readfilelinebyline.Swift test script and a short text file for testing.
2014-09-09 18:57:39 +02:00
Kare Morstol
c3ae075c5c
Renamed File tests to FileHandle* too.
2014-08-29 02:42:20 +02:00