-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equatables for Result and FrisbeeError #5
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5 +/- ##
==========================================
+ Coverage 92.78% 95.03% +2.25%
==========================================
Files 6 8 +2
Lines 97 141 +44
Branches 8 11 +3
==========================================
+ Hits 90 134 +44
Misses 7 7
Continue to review full report at Codecov.
|
These equatables are just use in test target. Do you think it is necessary to move them to production target? |
Makes it easier for the future, there is also no need for them to not be |
2ffcbb1
to
6b98f77
Compare
…uatable Add extensiveCombine on TestTarget to enable cartesian product of Sequences
6b98f77
to
ccfa5a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @william-wc 👏
} | ||
|
||
extension FrisbeeError { | ||
static func all(error: Error) -> [FrisbeeError] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To simplify this function, maybe error
could be just some string. And maybe SomeError
doesn't need to exist 🙂
Equatable
extensions from tests to frameworkResult
get-properties
extensions to frameworkFrisbeeError: Equatable
==
overload whenEntity: Equatable
onResult
Sequence.extensiveCombine
on testing target to enable cartesian product ofSequences
[0,1] x [a, b, c] = [(0,a), (0,b), (0,c), (1,a), (1,b), (1,c)]