# Path: expremigen/patterns/pchord.py
# class Pchord(Pattern):
#     """
#     special pattern that is never flattened; interpreted as a chord by the rest of the system
#     """
# 
#     def __init__(self, notes=0):
#         super().__init__()
#         self.notes = notes
# 
#     def __str__(self):
#         return "{0}({1})".format(self.__class__.__name__, self.notes)
# 
#     def __iter__(self):
#         yield Pchord(self.notes)
# 
#     def __repr__(self):
#         return self.__str__()
# 
#     def __eq__(self, other):
#         return self.notes == other.notes


import unittest
from expremigen.patterns.pchord import Pchord



class TestPchord(unittest.TestCase):
    def test_normal(self):
        a = [i for i in Pchord(["a4", "c#5", "e5"])]
        self.assertEqual(a[0].notes, ["a4", "c#5", "e5"])

    def test_repr(self):

# Path: expremigen/patterns/pchord.py
# class Pchord(Pattern):
#     """
#     special pattern that is never flattened; interpreted as a chord by the rest of the system
#     """
# 
#     def __init__(self, notes=0):
#         super().__init__()
#         self.notes = notes
# 
#     def __str__(self):
#         return "{0}({1})".format(self.__class__.__name__, self.notes)
# 
#     def __iter__(self):
#         yield Pchord(self.notes)
# 
#     def __repr__(self):
#         return self.__str__()
# 
#     def __eq__(self, other):
#         return self.notes == other.notes


# Path: tests/testpchord.py
import unittest
from expremigen.patterns.pchord import Pchord




class TestPchord(unittest.TestCase):
    def test_normal(self):
        a = [i for i in Pchord(["a4", "c#5", "e5"])]
        self.assertEqual(a[0].notes, ["a4", "c#5", "e5"])

    def test_repr(self):

        self.assertEqual("{0}".format(Pchord(["c3", "e3", "g3"])), "Pchord(['c3', 'e3', 'g3'])")