o
    .j                     @   s8   d dl Z d dlmZ dd Zdd Zdd Zd	d
 ZdS )    N)vFloatc                   C   s   t d dks
J d S )N        s   0.0)r   to_ical r   r   U/home/thesage/.local/lib/python3.10/site-packages/icalendar/tests/prop/test_vFloat.py	test_zero   s   r   c                   C   s0   t t d dksJ t ddksJ d S )Nz42.0g      E@)r   	from_icalr   r   r   r   r   test_roundtrip
   s   r	   c                   C   s:   t t td W d   dS 1 sw   Y  dS )zError: not an float stringznot a floatN)pytestraises
ValueErrorr   r   r   r   r   r   
test_error   s   "r   c                   C   s(   t djdks	J t djdksJ dS )z,ical_value property returns the float value.g      ?r   N)r   
ical_valuer   r   r   r   test_ical_value   s   r   )r
   icalendar.prop.floatr   r   r	   r   r   r   r   r   r   <module>   s    