# Path: test/_common.py
# def print_test_result(expected, actual, error=None):
#     print(f"[expected]\n{expected}\n")
#     print(f"[actual]\n{actual}\n")
# 
#     if error:
#         print(error, file=sys.stderr)
# 
#     print("----------------------------------------")
# 
# Path: test/data.py
# TIME = datetime.datetime(2017, 1, 1, 0, 0, 0)
# INF = float("inf")
# NAN = float("nan")
# 
# Path: test/writer/text/_common.py
# def strip_ansi_escape(value):


from textwrap import dedent
from tabledata import TableData
from ...._common import print_test_result
from ....data import (
    Data,
    headers,
    mix_header_list,
    mix_value_matrix,
    null_test_data_list,
    value_matrix,
    value_matrix_with_none,
    vut_style_tabledata,
    vut_styles,
)
from .._common import regexp_ansi_escape, strip_ansi_escape
import pytest
import pytablewriter
            .. table::

                +-+-----+---+---+----+
                |1|123.1|a  |1.0|   1|
                +-+-----+---+---+----+
                |2|  2.2|bb |2.2| 2.2|
                +-+-----+---+---+----+
                |3|  3.3|ccc|3.0|cccc|
                +-+-----+---+---+----+
            """
        ),
    ),
    Data(
        table="INDENTATION",
        indent=1,
        header=headers,
        value=value_matrix,
        expected="""    .. table:: INDENTATION

        +-+-----+---+---+----+
        |a|  b  | c |dd | e  |
        +=+=====+===+===+====+
        |1|123.1|a  |1.0|   1|
        +-+-----+---+---+----+
        |2|  2.2|bb |2.2| 2.2|
        +-+-----+---+---+----+
        |3|  3.3|ccc|3.0|cccc|
        +-+-----+---+---+----+
""",
    ),

# Path: test/_common.py
# def print_test_result(expected, actual, error=None):
#     print(f"[expected]\n{expected}\n")
#     print(f"[actual]\n{actual}\n")
# 
#     if error:
#         print(error, file=sys.stderr)
# 
#     print("----------------------------------------")
# 
# Path: test/data.py
# TIME = datetime.datetime(2017, 1, 1, 0, 0, 0)
# INF = float("inf")
# NAN = float("nan")
# 
# Path: test/writer/text/_common.py
# def strip_ansi_escape(value):


# Path: test/writer/text/rst/test_rst_grid_writer.py
from textwrap import dedent
from tabledata import TableData
from ...._common import print_test_result
from ....data import (
    Data,
    headers,
    mix_header_list,
    mix_value_matrix,
    null_test_data_list,
    value_matrix,
    value_matrix_with_none,
    vut_style_tabledata,
    vut_styles,
)
from .._common import regexp_ansi_escape, strip_ansi_escape
import pytest
import pytablewriter

            .. table::

                +-+-----+---+---+----+
                |1|123.1|a  |1.0|   1|
                +-+-----+---+---+----+
                |2|  2.2|bb |2.2| 2.2|
                +-+-----+---+---+----+
                |3|  3.3|ccc|3.0|cccc|
                +-+-----+---+---+----+
            """
        ),
    ),
    Data(
        table="INDENTATION",
        indent=1,
        header=headers,
        value=value_matrix,
        expected="""    .. table:: INDENTATION

        +-+-----+---+---+----+
        |a|  b  | c |dd | e  |
        +=+=====+===+===+====+
        |1|123.1|a  |1.0|   1|
        +-+-----+---+---+----+
        |2|  2.2|bb |2.2| 2.2|
        +-+-----+---+---+----+
        |3|  3.3|ccc|3.0|cccc|
        +-+-----+---+---+----+
""",
    ),

    Data(