TTS/tests/symbols_tests.py

8 lines
280 B
Python
Raw Normal View History

import unittest
from TTS.utils.text import phonemes
class SymbolsTest(unittest.TestCase):
2019-08-16 13:49:12 +00:00
def test_uniqueness(self): #pylint: disable=no-self-use
2019-08-16 13:08:04 +00:00
assert sorted(phonemes) == sorted(list(set(phonemes))), " {} vs {} ".format(len(phonemes), len(set(phonemes)))