Update for Xcode 7 beta 6.

For some reason "NSURL.checkResourceIsReachable() throws" is gone and "checkResourceIsReachableAndReturnError(NSErrorPointer)" is back even though the documentation says otherwise. Methods of other Cocoa classes which take NSError pointers have been converted to throwing functions.
This commit is contained in:
Kare Morstol
2015-08-28 00:34:01 +02:00
parent 4aeb5d7daa
commit 3218fd4315
4 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export DYLD_FRAMEWORK_PATH=$PROJECT_ROOT/build/Release/
# Be aware the “assert” command does not check standard error output or exit code.
assert "./print_arguments.swift 1 2" "[./print_arguments.swift, 1, 2]"
assert "./print_arguments.swift 1 2" "[\"./print_arguments.swift\", \"1\", \"2\"]"
assert_raises "./exitswhenopeningnon-existentfile.swift" 1
assert "cat onetwothree.txt | ./print_linenumbers.swift" "line 1: one\nline 2: two\nline 3: three"
assert "./stream_out.swift" " 3"