def test_nan_float_encodes(): encoded = ConjureEncoder.encode_primitive(float('nan')) assert(encoded == 'NaN')
def test_inf_float_encodes(value, expected_encoded): encoded = ConjureEncoder.encode_primitive(value) assert(encoded == expected_encoded)
def test_float_encodes(): encoded = ConjureEncoder.encode_primitive(1.0) assert(type(encoded) is float)