Skip to content

Commit 0b50832

Browse files
committed
Merge pull request #15 from CodaFi/testing-plus-plus
Testing Plus Plus
2 parents a2d2d5f + ab4ad5d commit 0b50832

21 files changed

+654
-1146
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ DerivedData
1616
*.hmap
1717
*.ipa
1818
*.xcuserstate
19+
Carthage/
1920

2021
# CocoaPods
2122
#

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "Carthage/Checkouts/Swiftz"]
22
path = Carthage/Checkouts/Swiftz
33
url = https://github.com/typelift/Swiftz.git
4+
[submodule "Carthage/Checkouts/SwiftCheck"]
5+
path = Carthage/Checkouts/SwiftCheck
6+
url = https://github.com/typelift/SwiftCheck.git

Cartfile.private

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github "typelift/Swiftz"
2+
github "typelift/SwiftCheck"

Cartfile.resolved

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
github "typelift/Swiftz" "v0.2.3"
1+
github "typelift/SwiftCheck" "v0.2.6"
2+
github "typelift/Swiftz" "v0.2.4"

Carthage/Checkouts/SwiftCheck

Submodule SwiftCheck added at 76a8c8a

Concurrent.xcodeproj/project.pbxproj

+148-81
Large diffs are not rendered by default.

Concurrent/QSem.swift

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// Copyright (c) 2014 TypeLift. All rights reserved.
77
//
88

9-
import Swiftz
10-
119
/// QSem is a simple quanitity semaphore (read: counting semaphore) that aquires and releases
1210
/// resources in increments of 1. The semaphore keeps track of blocked threads with MVar<()>'s.
1311
/// When a thread becomes unblocked, the semaphore simply fills the MVar with a (). Threads can

Concurrent/STM.swift

-205
This file was deleted.

Concurrent/SVar.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct SVar<A> {
3535
/// Creates a new SVar containing the supplied value.
3636
public init(initial : A){
3737
let v = MVar<A>(initial: initial)
38-
self.init(MVar(initial: (0, v)))
38+
self.init(MVar(initial: (1, v)))
3939
}
4040

4141
/// Empties the reciever.
@@ -70,7 +70,7 @@ public struct SVar<A> {
7070
self.svar.put(s)
7171
default:
7272
val.put(v)
73-
self.svar.put(min(1, readers), val)
73+
self.svar.put(min(1, readers + 1), val)
7474
}
7575
}
7676

Concurrent/TBQueue.swift

-66
This file was deleted.

0 commit comments

Comments
 (0)