Skip to content

Commit 9ba56ec

Browse files
committed
Chan specs are people too
1 parent e867d2f commit 9ba56ec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Concurrent.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
84A53E081B1A9F2C00E8A107 /* SwiftCheck.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 84A53E011B1A9F1900E8A107 /* SwiftCheck.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5151
84EA2C591B23AE5D0001FB3F /* ChanSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84F467811B1B9244002A4C4C /* ChanSpec.swift */; };
5252
84EA2C5A1B23AE5F0001FB3F /* MVarSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 841022531B1AA00D00E799A0 /* MVarSpec.swift */; };
53+
84EA2C5C1B240C4D0001FB3F /* SVarSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84EA2C5B1B240C4D0001FB3F /* SVarSpec.swift */; };
54+
84EA2C5D1B240C4D0001FB3F /* SVarSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84EA2C5B1B240C4D0001FB3F /* SVarSpec.swift */; };
5355
84F467831B1B9244002A4C4C /* ChanSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84F467811B1B9244002A4C4C /* ChanSpec.swift */; };
5456
/* End PBXBuildFile section */
5557

@@ -205,6 +207,7 @@
205207
84A53D441B1A8F1800E8A107 /* Concurrent-iOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Concurrent-iOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
206208
84A53DC91B1A964300E8A107 /* Swiftz.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Swiftz.xcodeproj; path = Carthage/Checkouts/Swiftz/Swiftz.xcodeproj; sourceTree = "<group>"; };
207209
84A53DF51B1A9F1800E8A107 /* SwiftCheck.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SwiftCheck.xcodeproj; path = Carthage/Checkouts/SwiftCheck/SwiftCheck.xcodeproj; sourceTree = SOURCE_ROOT; };
210+
84EA2C5B1B240C4D0001FB3F /* SVarSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SVarSpec.swift; sourceTree = "<group>"; };
208211
84F467811B1B9244002A4C4C /* ChanSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChanSpec.swift; sourceTree = "<group>"; };
209212
/* End PBXFileReference section */
210213

@@ -301,6 +304,7 @@
301304
children = (
302305
84F467811B1B9244002A4C4C /* ChanSpec.swift */,
303306
841022531B1AA00D00E799A0 /* MVarSpec.swift */,
307+
84EA2C5B1B240C4D0001FB3F /* SVarSpec.swift */,
304308
8434F9CF19E9CE1D008D9909 /* PiCalculus.swift */,
305309
8434F99019E9CD76008D9909 /* Supporting Files */,
306310
);
@@ -607,6 +611,7 @@
607611
isa = PBXSourcesBuildPhase;
608612
buildActionMask = 2147483647;
609613
files = (
614+
84EA2C5C1B240C4D0001FB3F /* SVarSpec.swift in Sources */,
610615
8434F9D019E9CE1D008D9909 /* PiCalculus.swift in Sources */,
611616
84EA2C5A1B23AE5F0001FB3F /* MVarSpec.swift in Sources */,
612617
84EA2C591B23AE5D0001FB3F /* ChanSpec.swift in Sources */,
@@ -634,6 +639,7 @@
634639
isa = PBXSourcesBuildPhase;
635640
buildActionMask = 2147483647;
636641
files = (
642+
84EA2C5D1B240C4D0001FB3F /* SVarSpec.swift in Sources */,
637643
84F467831B1B9244002A4C4C /* ChanSpec.swift in Sources */,
638644
841022551B1AA00D00E799A0 /* MVarSpec.swift in Sources */,
639645
84A53D6F1B1A8FC400E8A107 /* PiCalculus.swift in Sources */,

ConcurrentTests/ChanSpec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ extension Action : Arbitrary {
3131
/// ~(https://github.com/ghc/ghc/blob/master/libraries/base/tests/Concurrent/Chan001.hs)
3232
class ChanSpec : XCTestCase {
3333
func testProperties() {
34-
property[""] = formulate([.NewChan, .IsEmptyChan], [.NewChan, .ReturnBool(true)])
34+
property["New channels start empty"] = formulate([.NewChan, .IsEmptyChan], [.NewChan, .ReturnBool(true)])
3535

36-
property[""] = forAll { (n : Int) in
36+
property["Written-to channels are non-empty"] = forAll { (n : Int) in
3737
return self.formulate([.NewChan, .WriteChan(n), .IsEmptyChan], [.NewChan, .WriteChan(n), .ReturnBool(false)])
3838
}
3939

0 commit comments

Comments
 (0)