diff --git a/Tests/OTCoreTests/Extensions/Foundation/Collections and Foundation Tests.swift b/Tests/OTCoreTests/Extensions/Foundation/Collections and Foundation Tests.swift new file mode 100644 index 0000000..0a18f03 --- /dev/null +++ b/Tests/OTCoreTests/Extensions/Foundation/Collections and Foundation Tests.swift @@ -0,0 +1,16 @@ +// +// Collections and Foundation Tests.swift +// OTCore • https://github.com/orchetect/OTCore +// © 2022 Steffan Andrews • Licensed under MIT License +// + +import XCTest +@testable import OTCore + +final class Extensions_Foundation_Collections_Tests: XCTestCase { + func testComparisonResultInverted() { + XCTAssertEqual(ComparisonResult.orderedAscending.inverted, .orderedDescending) + XCTAssertEqual(ComparisonResult.orderedSame.inverted, .orderedSame) + XCTAssertEqual(ComparisonResult.orderedDescending.inverted, .orderedAscending) + } +}