-
Notifications
You must be signed in to change notification settings - Fork 201
[Base64] Add new encoding options #1195
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
base: main
Are you sure you want to change the base?
Conversation
Proposal: #1156 |
@@ -1804,17 +1804,65 @@ extension DataTests { | |||
XCTAssertEqual(Data().base64EncodedData(), Data()) | |||
} | |||
|
|||
func test_base64Encode_allBytesSequentially() { |
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.
As you probably have noticed we've switched to swift-testing for all of our tests. Can you update this test to use swift-testing?
@@ -2766,6 +2766,14 @@ extension Data { | |||
public static let endLineWithCarriageReturn = Base64EncodingOptions(rawValue: 1 << 4) | |||
/// When a maximum line length is set, specify that the line ending to insert should include a line feed. | |||
public static let endLineWithLineFeed = Base64EncodingOptions(rawValue: 1 << 5) | |||
|
|||
/// Use the base64url alphabet to encode the data | |||
@available(FoundationPreview 6.2, *) |
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.
We'll need to update this to 6.3 since we've passed 6.2. Just so we don't forget we'll want to update the proposal too
31a85fa
to
671392f
Compare
@swift-ci please test |
Implementation for pitch