mirror of
https://github.com/apple/swift-argument-parser.git
synced 2026-06-06 20:18:23 +00:00
Adopts the common swift-mmio and swift-argument-parser format and enables CI checking. Fixes: #702
40 lines
1.2 KiB
Swift
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")
|
|
}
|
|
}
|