# Path: deap/base.py
# class Toolbox(object):
# class Fitness(object):
#     def __init__(self):
#     def register(self, alias, function, *args, **kargs):
#     def unregister(self, alias):
#     def decorate(self, alias, *decorators):
#     def __init__(self, values=()):
#     def getValues(self):
#     def setValues(self, values):
#     def delValues(self):
#     def dominates(self, other, obj=slice(None)):
#     def valid(self):
#     def __hash__(self):
#     def __gt__(self, other):
#     def __ge__(self, other):
#     def __le__(self, other):
#     def __lt__(self, other):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __deepcopy__(self, memo):
#     def __str__(self):
#     def __repr__(self):
# 
# Path: deap/creator.py
#     class _numpy_array(numpy.ndarray):
# class _array(array.array):
#         def __deepcopy__(self, memo):
#         def __new__(cls, iterable):
#         def __setstate__(self, state):
#         def __reduce__(self):
#     def __new__(cls, seq=()):
#     def __deepcopy__(self, memo):
#     def __reduce__(self):
# def create(name, base, **kargs):
#     def initType(self, *args, **kargs):
# 
# Path: deap/benchmarks/binary.py
# def bin2float(min_, max_, nbits):
#     def wrap(function):
#         def wrapped_function(individual, *args, **kargs):
# def trap(individual):
# def inv_trap(individual):
# def chuang_f1(individual):
# def chuang_f2(individual):
# def chuang_f3(individual):
# def royal_road1(individual, order):
# def royal_road2(individual, order):


import sys
import unittest
from deap import base
from deap import creator
from deap.benchmarks import binary
"""Test functions from deap/benchmarks."""



class BenchmarkTest(unittest.TestCase):
    """Test object for unittest of deap/benchmarks."""

    def setUp(self):

        @binary.bin2float(0, 1023, 10)
        def evaluate(individual):
            """Simplest evaluation function."""
            return individual

        creator.create("FitnessMin", base.Fitness, weights=(-1.0,))
        creator.create("Individual", list, fitness=creator.FitnessMin)

# Path: deap/base.py
# class Toolbox(object):
# class Fitness(object):
#     def __init__(self):
#     def register(self, alias, function, *args, **kargs):
#     def unregister(self, alias):
#     def decorate(self, alias, *decorators):
#     def __init__(self, values=()):
#     def getValues(self):
#     def setValues(self, values):
#     def delValues(self):
#     def dominates(self, other, obj=slice(None)):
#     def valid(self):
#     def __hash__(self):
#     def __gt__(self, other):
#     def __ge__(self, other):
#     def __le__(self, other):
#     def __lt__(self, other):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __deepcopy__(self, memo):
#     def __str__(self):
#     def __repr__(self):
# 
# Path: deap/creator.py
#     class _numpy_array(numpy.ndarray):
# class _array(array.array):
#         def __deepcopy__(self, memo):
#         def __new__(cls, iterable):
#         def __setstate__(self, state):
#         def __reduce__(self):
#     def __new__(cls, seq=()):
#     def __deepcopy__(self, memo):
#     def __reduce__(self):
# def create(name, base, **kargs):
#     def initType(self, *args, **kargs):
# 
# Path: deap/benchmarks/binary.py
# def bin2float(min_, max_, nbits):
#     def wrap(function):
#         def wrapped_function(individual, *args, **kargs):
# def trap(individual):
# def inv_trap(individual):
# def chuang_f1(individual):
# def chuang_f2(individual):
# def chuang_f3(individual):
# def royal_road1(individual, order):
# def royal_road2(individual, order):


# Path: deap/tests/test_benchmarks.py
import sys
import unittest
from deap import base
from deap import creator
from deap.benchmarks import binary

"""Test functions from deap/benchmarks."""



class BenchmarkTest(unittest.TestCase):
    """Test object for unittest of deap/benchmarks."""

    def setUp(self):

        @binary.bin2float(0, 1023, 10)
        def evaluate(individual):
            """Simplest evaluation function."""
            return individual

        creator.create("FitnessMin", base.Fitness, weights=(-1.0,))
        creator.create("Individual", list, fitness=creator.FitnessMin)

        self.toolbox = base.Toolbox()