From 23af7e5f52519f85b175cf593e774b25770b15f8 Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Fri, 7 Mar 2025 12:16:57 -0500 Subject: [PATCH] Fix some broken links in Documentation (#1003) I periodically run a broken link checker over swiftlang repositories. There were a few links pointing to outdated locations in swift-testing. --- Documentation/ABI/JSON.md | 2 +- Documentation/WASI.md | 2 +- Sources/Testing/Testing.docc/MigratingFromXCTest.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/ABI/JSON.md b/Documentation/ABI/JSON.md index 2fac0c3fb..f313ddc00 100644 --- a/Documentation/ABI/JSON.md +++ b/Documentation/ABI/JSON.md @@ -13,7 +13,7 @@ See https://swift.org/CONTRIBUTORS.txt for Swift project authors This document outlines the JSON schemas used by the testing library for its ABI entry point and for the `--event-stream-output-path` command-line argument. For more information about the ABI entry point, see the documentation for -[ABI.v0.EntryPoint](https://github.com/search?q=repo%3Aapple%2Fswift-testing%EntryPoint&type=code). +[ABI.v0.EntryPoint](https://github.com/search?q=repo%3Aswiftlang%2Fswift-testing%20EntryPoint&type=code). ## Modified Backus-Naur form diff --git a/Documentation/WASI.md b/Documentation/WASI.md index f4176f755..46b8800ef 100644 --- a/Documentation/WASI.md +++ b/Documentation/WASI.md @@ -14,7 +14,7 @@ See https://swift.org/CONTRIBUTORS.txt for Swift project authors because it provides instructions the reader must follow directly. --> To run tests for WebAssembly, install a Swift SDK for WebAssembly by following -[these instructions](https://book.swiftwasm.org/getting-started/setup-snapshot.html). +[these instructions](https://book.swiftwasm.org/getting-started/setup.html). Because `swift test` doesn't know what WebAssembly environment you'd like to use to run your tests, building tests and running them are two separate steps. To diff --git a/Sources/Testing/Testing.docc/MigratingFromXCTest.md b/Sources/Testing/Testing.docc/MigratingFromXCTest.md index 44d91b5b0..e3a9d961f 100644 --- a/Sources/Testing/Testing.docc/MigratingFromXCTest.md +++ b/Sources/Testing/Testing.docc/MigratingFromXCTest.md @@ -397,7 +397,7 @@ Wherever possible, prefer to use Swift concurrency to validate asynchronous conditions. For example, if it's necessary to determine the result of an asynchronous Swift function, it can be awaited with `await`. For a function that takes a completion handler but which doesn't use `await`, a Swift -[continuation](https://developer.apple.com/documentation/swift/withcheckedcontinuation(function:_:)) +[continuation](https://developer.apple.com/documentation/swift/withcheckedcontinuation(isolation:function:_:)) can be used to convert the call into an `async`-compatible one. Some tests, especially those that test asynchronously-delivered events, cannot