def test_index_of_array_or_append(self, list, element, index, list_after):
        """Test the method index_of_array_or_append."""

        assert RepresentationResolver.index_of_array_or_append(element, list) == index
        assert list == list_after
def unicode_representation_resolver():
    """An instance of a RepresentationResolver with unicode charset."""
    return RepresentationResolver()
def ascii_representation_resolver():
    """An instance of a RepresentationResolver with unicode charset."""
    return RepresentationResolver(charset=qml.circuit_drawer.AsciiCharSet)
示例#4
0
def unicode_representation_resolver_varnames():
    """An instance of a RepresentationResolver with unicode charset and show_variable_names=True."""
    return RepresentationResolver(show_variable_names=True)