Hey yall, I've been exploring the git repo for the Swift Programming Language book and noticed that there are some comments in the markdown files that look like a way to test the code snippets in the book using the Swift compiler. For example:
However, I didn't find a way to run these tests in the repo. Is that possible? Did I misunderstand the comments, or is it perhaps an internal Apple tool that wasn't included in the repo?
Yep, those tests are from the older, RST-based pipeline we used to publish the book in the past. There isn’t a way to run them today, but we kept them in the book’s sources with the idea that there might be a way to bring them back later. Here’s the issue for that: Restore tested code listings · Issue #5 · swiftlang/swift-book · GitHub