@pytest.mark.parametrize('variable_type, bit_length', (('float', 32), ('double', 64)))
def tests_parse_float(variable_type, bit_length):
    f = io.BytesIO(textwrap.dedent('            FormatVersion=5.0 // Do not edit this line!\n            Title="Untitled"\n\n            {{SENDRECEIVE}}\n\n            [Symbol1]\n            ID=000h\n            DLC=8\n            Var=a_signal {variable_type} 0,{bit_length}\n            '.format(variable_type=variable_type, bit_length=bit_length)).encode('utf-8'))
    matrix = canmatrix.formats.sym.load(f)
    assert (matrix.load_errors == [])
    frame = matrix.frames[0]
    signal = frame.signals[0]
    assert signal.is_float
@pytest.mark.parametrize('variable_type, bit_length', (('float', 32), ('double', 64)))
def tests_parse_float(variable_type, bit_length):
    f = io.BytesIO(textwrap.dedent('            FormatVersion=5.0 // Do not edit this line!\n            Title="Untitled"\n\n            {{SENDRECEIVE}}\n\n            [Symbol1]\n            ID=000h\n            DLC=8\n            Var=a_signal {variable_type} 0,{bit_length}\n            '.format(variable_type=variable_type, bit_length=bit_length)).encode('utf-8'))
    matrix = canmatrix.formats.sym.load(f)
    assert (matrix.load_errors == [])
    frame = matrix.frames[0]
    signal = frame.signals[0]
    assert signal.is_float