|View source on GitHub|
Determines if a given circuit has the desired text diagram.
cirq.testing.assert_has_diagram( actual: Union[
cirq.ops.Moment], desired: str, **kwargs ) -> None
||The circuit that was actually computed by some process.|
||The desired text diagram as a string. Newlines at the beginning and whitespace at the end are ignored.|
||Keyword arguments to be passed to actual.to_text_diagram().|