Skip to content

Commit

Permalink
Rename the test target to not clash with other 'test' targets (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
orta authored and nicklockwood committed Dec 17, 2018
1 parent 630ea75 commit 7de1db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ let package = Package(
targets: [
.target(name: "CommandLineTool", dependencies: ["SwiftFormat"], path: "CommandLineTool"),
.target(name: "SwiftFormat", path: "Sources"),
.testTarget(name: "Tests", dependencies: ["SwiftFormat"], path: "Tests"),
.testTarget(name: "SwiftFormatTests", dependencies: ["SwiftFormat"], path: "Tests"),
]
)
4 changes: 2 additions & 2 deletions Tests/PerformanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class PerformanceTests: XCTestCase {
hexGrouping: .group(1, 1),
hoistPatternLet: false,
elseOnNextLine: true,
removeSelf: false,
explicitSelf: .insert,
experimentalRules: true
)
measure {
Expand Down Expand Up @@ -152,7 +152,7 @@ class PerformanceTests: XCTestCase {
func testWorstCaseRedundantSelf() {
let files = PerformanceTests.files
let tokens = files.map { tokenize($0) }
let options = FormatOptions(removeSelf: false)
let options = FormatOptions(explicitSelf: .insert)
measure {
_ = tokens.map { try! format($0, rules: [FormatRules.redundantSelf], options: options) }
}
Expand Down

0 comments on commit 7de1db8

Please sign in to comment.