Skip to content

Commit

Permalink
Reindent
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaFi committed May 6, 2016
1 parent a2ad55e commit 8cccf04
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions Tests/SimpleSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,16 @@ extension ArbitraryLargeFoo : Arbitrary {
return Gen<(Int8, Int16, Int32, Int64
, UInt8, UInt16, UInt32, UInt64
, Int , UInt)>
.zip( Int8.arbitrary
, Int16.arbitrary
, Int32.arbitrary
, Int64.arbitrary
, UInt8.arbitrary
, UInt16.arbitrary
, UInt32.arbitrary
, UInt64.arbitrary
, Int.arbitrary
, UInt.arbitrary).flatMap { t in
return Gen<(Bool, (Bool, Bool), (Bool, Bool, Bool), (Bool, Bool, Bool, Bool))>
.zip( Bool.arbitrary
, Gen<(Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary)
, Gen<(Bool, Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary, Bool.arbitrary)
, Gen<(Bool, Bool, Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary, Bool.arbitrary, Bool.arbitrary)).map({ t2 in
.zip( Int8.arbitrary, Int16.arbitrary, Int32.arbitrary, Int64.arbitrary
, UInt8.arbitrary, UInt16.arbitrary, UInt32.arbitrary, UInt64.arbitrary
, Int.arbitrary, UInt.arbitrary)
.flatMap { t in
return Gen<(Bool, (Bool, Bool), (Bool, Bool, Bool), (Bool, Bool, Bool, Bool))>
.zip( Bool.arbitrary
, Gen<(Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary)
, Gen<(Bool, Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary, Bool.arbitrary)
, Gen<(Bool, Bool, Bool, Bool)>.zip(Bool.arbitrary, Bool.arbitrary, Bool.arbitrary, Bool.arbitrary))
.map({ t2 in
return (t.0, t.1, t.2, t.3, t.4, t.5, t.6, t.7, t.8, t.9, t2.0, t2.1, t2.2, t2.3)
}).map(ArbitraryLargeFoo.init)
}
Expand Down

0 comments on commit 8cccf04

Please sign in to comment.