From 544ffa8eaec503c040ad979b2dbb7a67c39cac61 Mon Sep 17 00:00:00 2001 From: Peter Adams <63288215+PeterAdams-A@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:08:42 +0100 Subject: [PATCH] Use filePath for test assert location (#59) Motivation: This is consistent with what underlying assert does. Swift 6 warns about this mismatch Modifications: Use filePath for test assert location Result: Consistency in test assert location reporting --- Tests/SwiftASN1Tests/ASN1Tests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SwiftASN1Tests/ASN1Tests.swift b/Tests/SwiftASN1Tests/ASN1Tests.swift index 155defd..60839a8 100644 --- a/Tests/SwiftASN1Tests/ASN1Tests.swift +++ b/Tests/SwiftASN1Tests/ASN1Tests.swift @@ -1153,7 +1153,7 @@ class ASN1Tests: XCTestCase { func assertSetOfLessThanOrEqual( _ lhs: ArraySlice, _ rhs: ArraySlice, - file: StaticString = #file, + file: StaticString = #filePath, line: UInt = #line ) { XCTAssert(