Files
Rauhul Varma 10d80282e5 Enable swift-format checking (#711)
Adopts the common swift-mmio and swift-argument-parser format and enables CI checking.

Fixes: #702
2025-02-10 14:58:19 -08:00

40 lines
1.2 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
import ArgumentParserTestHelpers
import XCTest
final class GenerateDoccReferenceTests: XCTestCase {
#if os(macOS)
func testCountLinesDoccReference() throws {
guard #available(macOS 12, *) else { return }
try assertGenerateDoccReference(command: "count-lines")
}
#endif
func testColorDoccReference() throws {
try assertGenerateDoccReference(command: "color")
}
func testMathDoccReference() throws {
try assertGenerateDoccReference(command: "math")
}
func testRepeatDoccReference() throws {
try assertGenerateDoccReference(command: "repeat")
}
func testRollDoccReference() throws {
try assertGenerateDoccReference(command: "roll")
}
}