# Path: geomdl/utilities.py
# def color_generator(seed=None):
#     def r_int():
# def make_zigzag(points, num_cols):
# def make_quad(points, size_u, size_v):
# def make_quadtree(points, size_u, size_v, **kwargs):
# def evaluate_bounding_box(ctrlpts):
# def check_params(params):
# 
# Path: geomdl/knotvector.py
# def generate(degree, num_ctrlpts, **kwargs):
# def normalize(knot_vector, decimals=18):
# def check(degree, knot_vector, num_ctrlpts):
# 
# Path: geomdl/control_points.py
# class AbstractManager(object):
# class CurveManager(AbstractManager):
# class SurfaceManager(AbstractManager):
# class VolumeManager(AbstractManager):
#     def __init__(self, *args, **kwargs):
#     def __iter__(self):
#     def next(self):
#     def __next__(self):
#     def __len__(self):
#     def __reversed__(self):
#     def __getitem__(self, idx):
#     def __setitem__(self, idx, val):
#     def __copy__(self):
#     def __deepcopy__(self, memo):
#     def ctrlpts(self):
#     def ctrlpts(self, value):
#     def reset(self):
#     def get_ctrlpt(self, *args):
#     def set_ctrlpt(self, pt, *args):
#     def get_ptdata(self, dkey, *args):
#     def set_ptdata(self, adct, *args):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
# 
# Path: geomdl/utilities.py
# def color_generator(seed=None):
#     def r_int():
# def make_zigzag(points, num_cols):
# def make_quad(points, size_u, size_v):
# def make_quadtree(points, size_u, size_v, **kwargs):
# def evaluate_bounding_box(ctrlpts):
# def check_params(params):
# 
# Path: geomdl/exceptions.py
# class GeomdlException(Exception):
#     """ Custom exception for controlling geometric errors.
# 
#     The error details can be retrieved by querying ``data`` class member. The following snippet illustrates a sample
#     usage of this exception.
# 
#     .. code-example: python
# 
#         from geomdl import exceptions
# 
#         DEBUG = True
# 
#         # Catch the exception
#         try:
#             # Do something which can raise this exception
#         except GeomdlException as e:
#             print(e)
#             if DEBUG:
#                 print(e.data)
#             # Stop execution of the function
#             return
#     """
#     def __init__(self, msg, data=None):
#         super(GeomdlException, self).__init__(ERROR_PREFIX + msg)
#         self.data = data


import pytest
from geomdl import utilities
from geomdl import knotvector
from geomdl import control_points
from geomdl import utilities
from geomdl.exceptions import GeomdlException
    to_check = knotvector.normalize(input_kv)
    assert to_check == output_kv


def test_normalize_knot_vector3():
    with pytest.raises(TypeError):
        knotvector.normalize(5)


def test_check_uv1():
    u = -0.1
    v = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv2():
    u = 2
    v = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv3():
    v = -0.1
    u = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv4():
    v = 2
    u = 0.1

# Path: geomdl/utilities.py
# def color_generator(seed=None):
#     def r_int():
# def make_zigzag(points, num_cols):
# def make_quad(points, size_u, size_v):
# def make_quadtree(points, size_u, size_v, **kwargs):
# def evaluate_bounding_box(ctrlpts):
# def check_params(params):
# 
# Path: geomdl/knotvector.py
# def generate(degree, num_ctrlpts, **kwargs):
# def normalize(knot_vector, decimals=18):
# def check(degree, knot_vector, num_ctrlpts):
# 
# Path: geomdl/control_points.py
# class AbstractManager(object):
# class CurveManager(AbstractManager):
# class SurfaceManager(AbstractManager):
# class VolumeManager(AbstractManager):
#     def __init__(self, *args, **kwargs):
#     def __iter__(self):
#     def next(self):
#     def __next__(self):
#     def __len__(self):
#     def __reversed__(self):
#     def __getitem__(self, idx):
#     def __setitem__(self, idx, val):
#     def __copy__(self):
#     def __deepcopy__(self, memo):
#     def ctrlpts(self):
#     def ctrlpts(self, value):
#     def reset(self):
#     def get_ctrlpt(self, *args):
#     def set_ctrlpt(self, pt, *args):
#     def get_ptdata(self, dkey, *args):
#     def set_ptdata(self, adct, *args):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
#     def __init__(self, *args, **kwargs):
#     def find_index(self, *args):
# 
# Path: geomdl/utilities.py
# def color_generator(seed=None):
#     def r_int():
# def make_zigzag(points, num_cols):
# def make_quad(points, size_u, size_v):
# def make_quadtree(points, size_u, size_v, **kwargs):
# def evaluate_bounding_box(ctrlpts):
# def check_params(params):
# 
# Path: geomdl/exceptions.py
# class GeomdlException(Exception):
#     """ Custom exception for controlling geometric errors.
# 
#     The error details can be retrieved by querying ``data`` class member. The following snippet illustrates a sample
#     usage of this exception.
# 
#     .. code-example: python
# 
#         from geomdl import exceptions
# 
#         DEBUG = True
# 
#         # Catch the exception
#         try:
#             # Do something which can raise this exception
#         except GeomdlException as e:
#             print(e)
#             if DEBUG:
#                 print(e.data)
#             # Stop execution of the function
#             return
#     """
#     def __init__(self, msg, data=None):
#         super(GeomdlException, self).__init__(ERROR_PREFIX + msg)
#         self.data = data


# Path: tests/test_utils.py
import pytest
from geomdl import utilities
from geomdl import knotvector
from geomdl import control_points
from geomdl import utilities
from geomdl.exceptions import GeomdlException

    to_check = knotvector.normalize(input_kv)
    assert to_check == output_kv


def test_normalize_knot_vector3():
    with pytest.raises(TypeError):
        knotvector.normalize(5)


def test_check_uv1():
    u = -0.1
    v = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv2():
    u = 2
    v = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv3():
    v = -0.1
    u = 0.1
    assert not utilities.check_params([u, v])


def test_check_uv4():
    v = 2
    u = 0.1

    assert not utilities.check_params([u, v])