Skip to content

Commit

Permalink
style: add swift package index documentation support
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyamahunt committed Dec 18, 2022
1 parent 5cc52ce commit 3ae2525
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 1
builder:
configs:
- documentation_targets: [AsyncObjects]
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ var settings: [SwiftSetting] = {
return settings
}()

let appleGitHub = "https://github.com/apple"
let github = "https://github.com"
let appleGitHub = "\(github)/apple"

let package = Package(
name: "AsyncObjects",
platforms: [
Expand Down
6 changes: 3 additions & 3 deletions Tests/AsyncObjectsTests/XCTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ extension XCTestCase {

let assertions = {
XCTAssertLessThanOrEqual(
duration, seconds + 1,
duration, seconds + 3,
file: file, line: line
)
XCTAssertGreaterThanOrEqual(
duration, seconds - 1,
duration, seconds - 3,
file: file, line: line
)
}
Expand Down Expand Up @@ -123,7 +123,7 @@ extension XCTestCase {
let result = try await clock.measure { try await task() }
let assertions = {
XCTAssertLessThanOrEqual(
abs(duration.components.seconds - result.components.seconds), 1,
abs(duration.components.seconds - result.components.seconds), 3,
file: file, line: line
)
}
Expand Down

0 comments on commit 3ae2525

Please sign in to comment.