<s> import math <EOL> from unittest import TestCase <EOL> import simplejson as S <EOL> class TestFloat ( TestCase ) : <EOL> def test_floats ( self ) : <EOL> for num in [ <NUM_LIT> , math . pi , math . pi ** <NUM_LIT:100> , math . pi ** - <NUM_LIT:100> , <NUM_LIT> ] : <EOL> self . assertEquals ( float ( S . dumps ( num ) ) , num ) <EOL> self . assertEquals ( S . loads ( S . dumps ( num ) ) , num ) <EOL> def test_ints ( self ) : <EOL> for num in [ <NUM_LIT:1> , <NUM_LIT:1> L , <NUM_LIT:1> << <NUM_LIT:32> , <NUM_LIT:1> << <NUM_LIT:64> ] : <EOL> self . assertEquals ( S . dumps ( num ) , str ( num ) ) <EOL> self . assertEquals ( int ( S . dumps ( num ) ) , num ) </s>
