Swiftpack.co - 417-72KI/ParameterizedTestUtil as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by 417-72KI.
417-72KI/ParameterizedTestUtil v1.0.0
Helps parameterized test in Swift
⭐️ 0
🕓 19 hours ago
.package(url: "https://github.com/417-72KI/ParameterizedTestUtil.git", from: "v1.0.0")

ParameterizedTestUtil

Build Status GitHub release GitHub license

Helps parameterized test in Swift

Install

Swift Package Manager

.package(url: "https://github.com/417-72KI/ParameterizedTestUtil.git", .upToNextMajor(from: "1.0.0"))

CocoaPods

TODO: Future support

Usage:

runAll(
    expect(Int("1"), equals: 1), // means `XCTAssertEqual(Int("1"), 1)`
    expect(Double.pi, moreThan: 3.14), // means `XCTAssertTrue(Double.pi > 3.14)`
    expect(Double.pi, lessThan: 3.15), // means `XCTAssertTrue(Double.pi < 3.15)`
    expect(Bool("true")!, is: true) // means `XCTAssertTrue(Bool("true")!)`
)

GitHub

link
Stars: 0
Last commit: 19 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v1.0.0
2 years ago

v1.0.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics