Skip to content

Commit

Permalink
[Tests] Rework of BinaryInteger+Text.swift (#108) (#110).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Oct 25, 2024
1 parent 1a3de4e commit 3befe08
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 1,299 deletions.
16 changes: 0 additions & 16 deletions Sources/TestKit2/Expect+Text.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,3 @@ import CoreKit
#expect(input.description == expectation, sourceLocation: location)
#expect(String(describing: input) == expectation, sourceLocation: location)
}

//*============================================================================*
// MARK: * Expect x Text x Integers
//*============================================================================*

/// Tests whether an integer's description is stable.
@inlinable public func Ɣexpect<T>(
_ format: TextInt,
bidirectional integer: T,
at location: SourceLocation = #_sourceLocation
) throws where T: BinaryInteger {

let encoded = integer.description(as: format)
let decoded = try T.init(encoded, as: format)
#expect(decoded == integer, "BinaryInteger/description(_:as:) then BinaryInteger.init(_:as:)", sourceLocation: location)
}
59 changes: 0 additions & 59 deletions Tests/CoreKitTests/CoreInt+Text.swift

This file was deleted.

74 changes: 0 additions & 74 deletions Tests/DoubleIntKitTests/DoubleInt+Text.swift

This file was deleted.

Loading

0 comments on commit 3befe08

Please sign in to comment.