Skip to content

Commit

Permalink
[Tests] Rework of BinaryInteger+Factorization.swift (#108) (#110).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Oct 27, 2024
1 parent 53f0f1a commit 0f1737e
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 328 deletions.
6 changes: 6 additions & 0 deletions Sources/CoreKit/BinaryInteger+Factorization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extension BinaryInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Gretest Common Divisor to Least Common Multiple
///
Expand All @@ -53,6 +54,7 @@ extension BinaryInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Bézout's identity
///
Expand Down Expand Up @@ -90,6 +92,7 @@ extension FiniteInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Gretest Common Divisor to Least Common Multiple
///
Expand All @@ -113,6 +116,7 @@ extension FiniteInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Bézout's identity
///
Expand Down Expand Up @@ -147,6 +151,7 @@ extension Finite where Value: BinaryInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Gretest Common Divisor to Least Common Multiple
///
Expand Down Expand Up @@ -184,6 +189,7 @@ extension Finite where Value: BinaryInteger {
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Bézout's identity
///
Expand Down
1 change: 1 addition & 0 deletions Sources/CoreKit/Models/Bezout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/// 2. gcd(a, b) == gcd(±a, ±b)
/// 3. gcd(a, b) == gcd( a, b % a)
/// 4. gcd(a, b) == gcd( b, a)
/// 5. gcd(a, ∞) == nil
///
/// ### Bézout's identity
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/TestKit/Test+Factorization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import CoreKit
//*============================================================================*

extension Test {

#warning("test these things in new tests")
//=------------------------------------------------------------------------=
// MARK: Utilities
//=------------------------------------------------------------------------=
Expand Down
46 changes: 0 additions & 46 deletions Tests/DoubleIntKitTests/DoubleInt+Factorization.swift

This file was deleted.

86 changes: 0 additions & 86 deletions Tests/InfiniIntKitTests/InfiniInt+Factorization.swift

This file was deleted.

Loading

0 comments on commit 0f1737e

Please sign in to comment.