Skip to content

Commit 22fece1

Browse files
committed
Use #_sourceLocation macro instead of __here
1 parent d39d509 commit 22fece1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/TestingTests/RunnerTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ final class RunnerTests: XCTestCase {
335335

336336
func testEvaluateConditionTrait() async throws {
337337
let comment: Comment = "comment"
338-
let trueUnconditional = ConditionTrait(kind: .unconditional(true), comments: [], sourceLocation: .__here())
338+
let trueUnconditional = ConditionTrait(kind: .unconditional(true), comments: [], sourceLocation: #_sourceLocation)
339339
let falseUnconditional = ConditionTrait.disabled()
340340
let enabledTrue = ConditionTrait.enabled(if: true)
341341
let enabledFalse = ConditionTrait.enabled(if: false)
342-
let enabledTrueComment = ConditionTrait(kind: .conditional { (true, comment) }, comments: [], sourceLocation: .__here())
343-
let enabledFalseComment = ConditionTrait(kind: .conditional { (false, comment) }, comments: [], sourceLocation: .__here())
342+
let enabledTrueComment = ConditionTrait(kind: .conditional { (true, comment) }, comments: [], sourceLocation: #_sourceLocation)
343+
let enabledFalseComment = ConditionTrait(kind: .conditional { (false, comment) }, comments: [], sourceLocation: #_sourceLocation)
344344
var result: ConditionTrait.EvaluationResult
345345

346346
result = try await trueUnconditional.evaluate()

0 commit comments

Comments
 (0)