# 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,
)
                },
                {
                    "ha": 11,
                    "hb": 12,
                    "hc": 13
                },
                {
                    "ha": 1,
                    "hb": 2,
                    "hc": 3
                },
                {
                    "ha": 11,
                    "hb": 12,
                    "hc": 13
                },
                {
                    "ha": 101,
                    "hb": 102,
                    "hc": 103
                },
                {
                    "ha": 1001,
                    "hb": 1002,
                    "hc": 1003
                }]}"""
                ),
            ]
        ],
    )

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

                },
                {
                    "ha": 11,
                    "hb": 12,
                    "hc": 13
                },
                {
                    "ha": 1,
                    "hb": 2,
                    "hc": 3
                },
                {
                    "ha": 11,
                    "hb": 12,
                    "hc": 13
                },
                {
                    "ha": 101,
                    "hb": 102,
                    "hc": 103
                },
                {
                    "ha": 1001,
                    "hb": 1002,
                    "hc": 1003
                }]}"""
                ),
            ]
        ],
    )

    def test_normal(self, capsys, table, header, value, expected):