Skip to content

Commit

Permalink
style: run SwiftFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
abdel-17 committed Jan 15, 2024
1 parent 82a56dc commit 6b281fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/RationalModuleTests/RationalTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,38 +139,38 @@ final class RationalTests: XCTestCase {
(Rational(-1, 7), -1),
(Rational(-0, 7), 0),
]

for (rational, expected) in testCases {
XCTAssertEqual(rational.signum(), expected)
}
}

func test_signum_int16() {
let testCases: [(Rational<Int16>, Int16)] = [
(Rational(1, 4), 1),
(Rational(0, 4), 0),
(Rational(-1, 7), -1),
(Rational(-0, 7), 0),
]

for (rational, expected) in testCases {
XCTAssertEqual(rational.signum(), expected)
}
}

func test_signum_int32() {
let testCases: [(Rational<Int32>, Int32)] = [
(Rational(1, 4), 1),
(Rational(0, 4), 0),
(Rational(-1, 7), -1),
(Rational(-0, 7), 0),
]

for (rational, expected) in testCases {
XCTAssertEqual(rational.signum(), expected)
}
}

func test_signum_int64() {
let testCases: [(Rational<Int>, Int)] = [
(Rational(1, 4), 1),
Expand Down

0 comments on commit 6b281fe

Please sign in to comment.