Commit 09eb6280 authored by Drew's avatar Drew

Update to Swift Preview 5

parent f139e3f7
......@@ -69,9 +69,9 @@ class DateTests: XCTestCase {
}
func testAddingDates() {
let date1 = Date(timestamp: 86400)
let date2 = Date(timestamp: 86400)
XCTAssert(date1 + date2 == Date(timestamp: 86400 * 2))
let date1 = atfoundation.Date(timestamp: 86400)
let date2 = atfoundation.Date(timestamp: 86400)
XCTAssert(date1 + date2 == atfoundation.Date(timestamp: 86400 * 2))
XCTAssert(date1 - date2 == Date(timestamp: 0))
}
......@@ -84,7 +84,7 @@ class DateTests: XCTestCase {
}
extension DateTests {
static var allTests : [(String, DateTests -> () throws -> Void)] {
static var allTests : [(String, (DateTests) -> () throws -> Void)] {
return [
("testISODateParsing", testISODateParsing),
("testTimeStampToISODate", testTimeStampToISODate),
......
......@@ -217,7 +217,7 @@ class FSTests: XCTestCase {
}
extension FSTests {
static var allTests : [(String, FSTests -> () throws -> Void)] {
static var allTests : [(String, (FSTests) -> () throws -> Void)] {
return [
("testFileExists", testFileExists),
("testFileDoesNotExist", testFileDoesNotExist),
......
......@@ -210,7 +210,7 @@ class PathTests: XCTestCase {
}
extension PathTests {
static var allTests : [(String, PathTests -> () throws -> Void)] {
static var allTests : [(String, (PathTests) -> () throws -> Void)] {
return [
("testInitNoDelimiter", testInitNoDelimiter),
("testInitWithDelimiter", testInitWithDelimiter),
......
......@@ -68,7 +68,7 @@ class LoggerTests: XCTestCase {
}
extension LoggerTests {
static var allTests : [(String, LoggerTests -> () throws -> Void)] {
static var allTests : [(String, (LoggerTests) -> () throws -> Void)] {
return [
("testLogStdErr", testLogStdErr),
("testLogStdOut", testLogStdOut),
......
......@@ -91,7 +91,7 @@ class ReplaceTests: XCTestCase {
}
extension ReplaceTests {
static var allTests : [(String, ReplaceTests -> () throws -> Void)] {
static var allTests : [(String, (ReplaceTests) -> () throws -> Void)] {
return [
("testNewStringSubstring", testNewStringSubstring),
("testNewStringSubstringWithEmpty", testNewStringSubstringWithEmpty),
......
......@@ -240,7 +240,7 @@ class SearchTests: XCTestCase {
}
extension SearchTests {
static var allTests : [(String, SearchTests -> () throws -> Void)] {
static var allTests : [(String, (SearchTests) -> () throws -> Void)] {
return [
("testPositionOfChar", testPositionOfChar),
("testPositionOfCharNotFound", testPositionOfCharNotFound),
......
......@@ -128,7 +128,7 @@ class SplitTests: XCTestCase {
}
extension SplitTests {
static var allTests : [(String, SplitTests -> () throws -> Void)] {
static var allTests : [(String, (SplitTests) -> () throws -> Void)] {
return [
("testJoinWithString", testJoinWithString),
("testJoinWithStringAndEmptyArray", testJoinWithStringAndEmptyArray),
......
......@@ -44,7 +44,7 @@ class SubstringTests: XCTestCase {
}
extension SubstringTests {
static var allTests : [(String, SubstringTests -> () throws -> Void)] {
static var allTests : [(String, (SubstringTests) -> () throws -> Void)] {
return [
("testSubstring", testSubstring),
("testSubstringFullRange", testSubstringFullRange),
......
......@@ -40,7 +40,7 @@ class WhitespaceTests: XCTestCase {
}
extension WhitespaceTests {
static var allTests : [(String, WhitespaceTests -> () throws -> Void)] {
static var allTests : [(String, (WhitespaceTests) -> () throws -> Void)] {
return [
("testWhitespaceAtBeginning", testWhitespaceAtBeginning),
("testWhitespaceAtEnd", testWhitespaceAtEnd),
......
......@@ -54,7 +54,7 @@ class URLTests: XCTestCase {
}
extension URLTests {
static var allTests : [(String, URLTests -> () throws -> Void)] {
static var allTests : [(String, (URLTests) -> () throws -> Void)] {
return [
("testURLEncode", testURLEncode),
("testURLDecode", testURLDecode),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment