<s> from test . support import TestFailed <EOL> PI = <NUM_LIT> <EOL> TWOPI = <NUM_LIT> <EOL> PI_str = "<STR_LIT>" <EOL> TWOPI_str = "<STR_LIT>" <EOL> def check_ok ( x , x_str ) : <EOL> assert x > <NUM_LIT:0.0> <EOL> x2 = eval ( x_str ) <EOL> assert x2 > <NUM_LIT:0.0> <EOL> diff = abs ( x - x2 ) <EOL> if x2 + ( diff / <NUM_LIT> ) != x2 : <EOL> raise TestFailed ( "<STR_LIT>" % x_str ) <EOL> check_ok ( PI , PI_str ) <EOL> check_ok ( TWOPI , TWOPI_str ) </s>
