Merge pull request #1277 from spevans/pr_reenable_tests
diff --git a/TestFoundation/TestCharacterSet.swift b/TestFoundation/TestCharacterSet.swift
index 18a8f03..d613db1 100644
--- a/TestFoundation/TestCharacterSet.swift
+++ b/TestFoundation/TestCharacterSet.swift
@@ -76,10 +76,10 @@
("test_InlineBuffer", test_InlineBuffer),
("test_Equatable", test_Equatable),
// The following tests must remain disabled until SR-2509 is resolved.
- // ("test_Subtracting", test_Subtracting),
- // ("test_SubtractEmptySet", test_SubtractEmptySet),
- // ("test_SubtractNonEmptySet", test_SubtractNonEmptySet),
- // ("test_SymmetricDifference", test_SymmetricDifference),
+ ("test_Subtracting", test_Subtracting),
+ ("test_SubtractEmptySet", test_SubtractEmptySet),
+ ("test_SubtractNonEmptySet", test_SubtractNonEmptySet),
+ ("test_SymmetricDifference", test_SymmetricDifference),
]
}
diff --git a/TestFoundation/TestNSData.swift b/TestFoundation/TestNSData.swift
index d3d7919..db88d57 100644
--- a/TestFoundation/TestNSData.swift
+++ b/TestFoundation/TestNSData.swift
@@ -205,16 +205,16 @@
("test_contentsOfZeroFile", test_contentsOfZeroFile),
("test_basicReadWrite", test_basicReadWrite),
("test_bufferSizeCalculation", test_bufferSizeCalculation),
- // ("test_dataHash", test_dataHash), Disabled due to lack of brdiging in swift runtime -- infinite loops
+ ("test_dataHash", test_dataHash),
("test_genericBuffers", test_genericBuffers),
- // ("test_writeFailure", test_writeFailure), segfaults
+ ("test_writeFailure", test_writeFailure),
("testBasicConstruction", testBasicConstruction),
("testBridgingDefault", testBridgingDefault),
("testBridgingMutable", testBridgingMutable),
("testCopyBytes_oversized", testCopyBytes_oversized),
("testCopyBytes_ranges", testCopyBytes_ranges),
("testCopyBytes_undersized", testCopyBytes_undersized),
- ("testCopyBytes", testCopyBytes),
+ ("testCopyBytes", testCopyBytes),
("testCustomDeallocator", testCustomDeallocator),
("testDataInSet", testDataInSet),
("testEquality", testEquality),
@@ -229,8 +229,7 @@
("testReplaceSubrange3", testReplaceSubrange3),
("testReplaceSubrange4", testReplaceSubrange4),
("testReplaceSubrange5", testReplaceSubrange5),
-
-
+
("test_description", test_description),
("test_emptyDescription", test_emptyDescription),
("test_longDescription", test_longDescription),
@@ -259,7 +258,7 @@
("test_initDataWithCount", test_initDataWithCount),
("test_emptyStringToData", test_emptyStringToData),
("test_repeatingValueInitialization", test_repeatingValueInitialization),
-
+
("test_sliceAppending", test_sliceAppending),
("test_replaceSubrange", test_replaceSubrange),
("test_sliceWithUnsafeBytes", test_sliceWithUnsafeBytes),
diff --git a/TestFoundation/TestNSDictionary.swift b/TestFoundation/TestNSDictionary.swift
index fa09cb0..b1435d4 100644
--- a/TestFoundation/TestNSDictionary.swift
+++ b/TestFoundation/TestNSDictionary.swift
@@ -24,7 +24,7 @@
static var allTests: [(String, (TestNSDictionary) -> () throws -> Void)] {
return [
("test_BasicConstruction", test_BasicConstruction),
-// ("test_ArrayConstruction", test_ArrayConstruction),
+ ("test_ArrayConstruction", test_ArrayConstruction),
("test_description", test_description),
("test_enumeration", test_enumeration),
("test_equality", test_equality),
@@ -60,12 +60,12 @@
XCTAssertEqual(dict2[1] as? NSNumber, NSNumber(value: 2))
}
-// func test_ArrayConstruction() {
-// let objects = ["foo", "bar", "baz"]
-// let keys = ["foo", "bar", "baz"]
-// let dict = NSDictionary(objects: objects, forKeys: keys)
-// XCTAssertEqual(dict.count, 3)
-// }
+ func test_ArrayConstruction() {
+ let objects = ["foo", "bar", "baz"]
+ let keys: [NSString] = ["foo", "bar", "baz"]
+ let dict = NSDictionary(objects: objects, forKeys: keys)
+ XCTAssertEqual(dict.count, 3)
+ }
func test_enumeration() {
let dict : NSDictionary = ["foo" : "bar", "whiz" : "bang", "toil" : "trouble"]