Skip to content

Commit bbdebdd

Browse files
committed
Fix usage of deprecated 'sha512Checksum' API
1 parent f11ea83 commit bbdebdd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Tests/SwiftDocCTests/Model/SemaToRenderNodeTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This source file is part of the Swift.org open source project
33

4-
Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
4+
Copyright (c) 2021-2023 Apple Inc. and the Swift project authors
55
Licensed under Apache License v2.0 with Runtime Library Exception
66

77
See https://swift.org/LICENSE.txt for license information
@@ -370,7 +370,7 @@ class SemaToRenderNodeTests: XCTestCase {
370370
XCTAssertEqual(xcodeRequirementReference.url.absoluteString, "https://www.example.com/download")
371371

372372
XCTAssertEqual(downloadReference.identifier.identifier, "project.zip")
373-
XCTAssertEqual(downloadReference.sha512Checksum, "2521bb27db3f8b72f8f2bb9e3a33698b9c5c72a5d7862f5b209794099e1cf0acaab7d8a47760b001cb508b5c4f3d7cf7f8ce1c32679b3fde223e63b5a1e7e509")
373+
XCTAssertEqual(downloadReference.checksum, "2521bb27db3f8b72f8f2bb9e3a33698b9c5c72a5d7862f5b209794099e1cf0acaab7d8a47760b001cb508b5c4f3d7cf7f8ce1c32679b3fde223e63b5a1e7e509")
374374

375375
// This topic link didn't resolve, so it should not be in the references dictionary.
376376
// Additionally, the link should've been rendered inactive, i.e. a text element instead of a link.

Tests/SwiftDocCTests/Model/SourceLanguageTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
This source file is part of the Swift.org open source project
33

4-
Copyright (c) 2022 Apple Inc. and the Swift project authors
4+
Copyright (c) 2022-2023 Apple Inc. and the Swift project authors
55
Licensed under Apache License v2.0 with Runtime Library Exception
66

77
See https://swift.org/LICENSE.txt for license information
@@ -14,6 +14,7 @@ import XCTest
1414
class SourceLanguageTests: XCTestCase {
1515
func testUsesIDAliasesWhenQueryingFirstKnownLanguage() {
1616
XCTAssertEqual(SourceLanguage(knownLanguageIdentifier: "objective-c"), .objectiveC)
17+
XCTAssertEqual(SourceLanguage(knownLanguageIdentifier: "objc"), .objectiveC)
1718
XCTAssertEqual(SourceLanguage(knownLanguageIdentifier: "c"), .objectiveC)
1819
}
1920
}

0 commit comments

Comments
 (0)