# 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")


import collections
import json
import platform as m_platform
import sys
import pytest
import pytablewriter
from textwrap import dedent
from ..._common import print_test_result
from ...data import (
    float_header_list,
    float_value_matrix,
    headers,
    mix_header_list,
    mix_value_matrix,
    value_matrix,
    value_matrix_iter,
    value_matrix_with_none,
)
                    "a": "abc",
                    "b": true,
                    "f": "NaN",
                    "i": 0,
                    "n": 0.1
                },
                {
                    "a": "abcdef",
                    "b": false,
                    "f": "Infinity",
                    "i": -1,
                    "n": null
                },
                {
                    "a": "",
                    "b": false,
                    "f": "Infinity",
                    "i": 1,
                    "n": null
                }
            ]
            """
        )

        print_test_result(expected=expected, actual=out)
        assert out == expected

    def test_normal_indent_wo_table_name(self):
        writer = table_writer_class()
        writer.headers = ["a", "i"]

# 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/test_json_writer.py
import collections
import json
import platform as m_platform
import sys
import pytest
import pytablewriter
from textwrap import dedent
from ..._common import print_test_result
from ...data import (
    float_header_list,
    float_value_matrix,
    headers,
    mix_header_list,
    mix_value_matrix,
    value_matrix,
    value_matrix_iter,
    value_matrix_with_none,
)

                    "a": "abc",
                    "b": true,
                    "f": "NaN",
                    "i": 0,
                    "n": 0.1
                },
                {
                    "a": "abcdef",
                    "b": false,
                    "f": "Infinity",
                    "i": -1,
                    "n": null
                },
                {
                    "a": "",
                    "b": false,
                    "f": "Infinity",
                    "i": 1,
                    "n": null
                }
            ]
            """
        )

        print_test_result(expected=expected, actual=out)
        assert out == expected

    def test_normal_indent_wo_table_name(self):
        writer = table_writer_class()
        writer.headers = ["a", "i"]

        writer.value_matrix = [