# encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""

from __future__ import absolute_import
import datetime


_time = datetime.datetime(2017, 1, 1, 0, 0, 0)
_inf = float("inf")
_nan = float("nan")

header_list = ["a", "b", "c", "dd", "e"]
value_matrix = [
    ["1", 123.1, "a", "1",   1],
    [2, 2.2, "bb", "2.2", 2.2],
    [3, 3.3, "ccc", "3",   "cccc"],
]
value_matrix_with_none = [
    ["1", None, "a", "1",   None],
    [None, 2.2, None, "2.2", 2.2],
    [3, 3.3, "ccc", None,   "cccc"],
    [None, None, None, None,   None],
]

mix_header_list = [
    "i",
    "f",
    "c",
    "if",
    "ifc",
    "bool",
    "inf",
    "nan",
    "mix_num",
    "time",
]
mix_value_matrix = [
    [
        1, 1.1,  "aa",   1,   1,     True,
        _inf,       _nan,  1.0,  _time
    ],
    [
        2, 2.2,  "bbb",  2.2, 2.2,   False,
        "inf",      "nan", _inf, "2017-01-02 03:04:05+0900",
    ],
    [
        3, 3.33, "cccc", -3,  "ccc", "true",
        "infinity", "NAN", _nan, _time],
]

@@ -1013,12 +1013,153 @@
 , _time%5D,%0A%5D%0A
+%0Afloat_header_list = %5B%22a%22, %22b%22, %22c%22%5D%0Afloat_value_matrix = %5B%0A    %5B0.01, 9.123,   0.0%5D,%0A    %5B1.0, 99.123,  0.01%5D,%0A    %5B1.2, 999.123, 0.001%5D,%0A%5D%0A

Add a test data