Skip to content

Commit 678fbdc

Browse files
authored
Merge branch 'master' into ci-refactor
2 parents 4ddcfb5 + 93f04e6 commit 678fbdc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

algolib/maths/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .equation import Equation
33
from .equation_system import EquationSystem, InfiniteSolutionsError, NoSolutionError
44
from .fraction import Fraction
5-
from .maths import gcd, lcm, multiply, power
5+
from .integers import gcd, lcm, multiply, power
66
from .primes_searching import find_primes
77
from .primes_testing import test_prime_fermat, test_prime_miller
88

algolib/maths/fraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Structure of fraction."""
33
from typing import Tuple
44

5-
from .maths import gcd, lcm
5+
from .integers import gcd, lcm
66

77

88
class Fraction:

algolib/maths/maths.py renamed to algolib/maths/integers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""Algorithms for basic mathematical operations."""
2+
"""Algorithms for basic computations on integers."""
33
from typing import Optional, Union
44

55

algolib/maths/primes_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Algorithms for testing prime numbers."""
33
from random import randint
44

5-
from algolib.maths.maths import gcd, power
5+
from algolib.maths.integers import gcd, power
66

77

88
def test_prime_fermat(number: int) -> bool:

tests/maths/test_maths.py renamed to tests/maths/test_integers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""Tests: Algorithms for basic mathematics."""
2+
"""Tests: Algorithms for basic computations on integers."""
33
import unittest
44

55
from assertpy import assert_that

0 commit comments

Comments
 (0)