Skip to content

Commit

Permalink
fix CI validity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mredig committed Jan 15, 2025
1 parent 69f69e8 commit 54088a8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Tests/HummingbirdTests/URLEncodedForm/URLEncoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import Hummingbird
import XCTest

final class URLEncodedFormEncoderTests: XCTestCase {
static func XCTAssertEncodedEqual(_ lhs: String, _ rhs: String, file: StaticString = #filePath, line: UInt = #line) {
static func XCTAssertEncodedEqual(
_ lhs: String,
_ rhs: String,
file: StaticString = #filePath,
line: UInt = #line
) {
let lhs = lhs.split(separator: "&")
.sorted { $0 < $1 }
.joined(separator: "&")
Expand All @@ -26,7 +31,13 @@ final class URLEncodedFormEncoderTests: XCTestCase {
XCTAssertEqual(lhs, rhs, file: file, line: line)
}

func testForm(_ value: some Encodable, query: String, encoder: URLEncodedFormEncoder = .init(), file: StaticString = #filePath, line: UInt = #line) {
func testForm(
_ value: some Encodable,
query: String,
encoder: URLEncodedFormEncoder = .init(),
file: StaticString = #filePath,
line: UInt = #line
) {
do {
let query2 = try encoder.encode(value)
Self.XCTAssertEncodedEqual(query2, query, file: file, line: line)
Expand Down

0 comments on commit 54088a8

Please sign in to comment.