Example #1
0
def test_nan_float_encodes():
    encoded = ConjureEncoder.encode_primitive(float('nan'))
    assert(encoded == 'NaN')
Example #2
0
def test_inf_float_encodes(value, expected_encoded):
    encoded = ConjureEncoder.encode_primitive(value)
    assert(encoded == expected_encoded)
Example #3
0
def test_float_encodes():
    encoded = ConjureEncoder.encode_primitive(1.0)
    assert(type(encoded) is float)