# MAGNOPY - Python package for magnons.
# Copyright (C) 2023-2025 Magnopy Team
#
# e-mail: anry@uv.es, web: magnopy.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.


import numpy as np
import pytest
from hypothesis import given
from hypothesis import strategies as st
from hypothesis.extra.numpy import arrays as harrays
from numpy.linalg import LinAlgError

from magnopy import ColpaFailed, solve_via_colpa


@given(
    harrays(
        np.complex128,
        (2, 2),
        elements=st.complex_numbers(
            min_magnitude=1e-8,
            max_magnitude=100,
            allow_infinity=False,
            allow_nan=False,
            allow_subnormal=False,
        ),
    )
)
def test_solve_via_colpa_2x2(D):
    pass
    # TODO
