<filename>tests/test_general.py
from pycalc.general import acosa, asina, atana, rad2deg, deg2rad
from math import isclose


class TestAngleConverion:
    def test_rad2deg(self):
        assert isclose(rad2deg(1), 57.2957795, rel_tol=1e-06)

    def test_deg2rad(self):
        assert isclose(deg2rad(1), 0.0174532925, rel_tol=1e-06)


class TestTrigonometry:
    def test_asina(self):
        assert isclose(asina(1 / 2), 30, rel_tol=1e-06)

    def test_acosa(self):
        assert isclose(acosa(1 / 2), 60, rel_tol=1e-06)

    def test_atana(self):
        assert isclose(atana(1), 45, rel_tol=1e-06)

<filename>tests/test_general.py
from pycalc.general import acosa, asina, atana, rad2deg, deg2rad
from math import isclose


class TestAngleConverion:
    def test_rad2deg(self):
        assert isclose(rad2deg(1), 57.2957795, rel_tol=1e-06)

    def test_deg2rad(self):
        assert isclose(deg2rad(1), 0.0174532925, rel_tol=1e-06)


class TestTrigonometry:
    def test_asina(self):
        assert isclose(asina(1 / 2), 30, rel_tol=1e-06)

    def test_acosa(self):
        assert isclose(acosa(1 / 2), 60, rel_tol=1e-06)

    def test_atana(self):
        assert isclose(atana(1), 45, rel_tol=1e-06)
