-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Refactoring 1_stdlib/Optional.swift test file #423
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
Conversation
protocol TestProtocol1 {} | ||
|
||
// Check that the generic parameter is called 'Memory'. | ||
extension Optional where Wrapped : TestProtocol1 { | ||
extension Optional where Wrapped: TestProtocol1 { |
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.
In the standard library code, we put spaces on both sides of the colon when it denotes an "is-a" relationship: in generic parameter lists, in inheritance and protocol implementation lists etc.
8afa44a
to
f2fd81f
Compare
@gribozavr thanks for review. Can you look again :) |
Whats about |
|
@gribozavr |
@frootloops Yes, |
@gribozavr ok, thanks. |
@gribozavr is PR ready for merge? |
// CHECK-NEXT: false, true, false, false, true, false. | ||
expectEqual(testRelation(==), [true, false, false, false, false, true]) | ||
expectEqual(testRelation(!=), [false, true, true, true, true, false]) | ||
expectEqual(testRelation(<), [false, true, false, false, true, false]) |
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.
Please move this into an OptionalTest.test() {}
, there should be no top-level code.
f2fd81f
to
bb307a7
Compare
bb307a7
to
ea46807
Compare
@gribozavr I have update the PR. Thank you for comments 👍 |
Refactoring 1_stdlib/Optional.swift test file
@frootloops Thank you! |
[pull] swiftwasm from master
Add support for release/5.3
Can somebody have a look at the PR and leave some comments and advices about code style, variable naming etc.
I use
./llvm/utils/lit/lit.py -sv ./build/Ninja-DebugAssert/swift-macosx-x86_64/test-macosx-x86_64/1_stdlib/Optional.swift
for running tests. Is it right way to do so?