Add better error reporting to “open” function. Add public function "printErrorAndExit".
This commit is contained in:
@@ -11,10 +11,9 @@ import XCTest
|
||||
|
||||
class FileHandle_Tests: XCTestCase {
|
||||
|
||||
// waiting for error handling to be implemented
|
||||
func notestOpenForReadingFileWhichDoesNotExist () {
|
||||
// prints error message and stops execution.
|
||||
let file = open("file which does not exist")
|
||||
XCTFail("not implemented yet")
|
||||
}
|
||||
|
||||
func testReadFileLineByLine () {
|
||||
|
||||
Reference in New Issue
Block a user