<s> import sys <EOL> import unittest <EOL> from py65 . utils . conversions import itoa , convert_to_bin , convert_to_bcd <EOL> class ConversionsTopLevelTests ( unittest . TestCase ) : <EOL> def test_itoa_decimal_output ( self ) : <EOL> self . assertEqual ( '<STR_LIT>' , itoa ( <NUM_LIT:10> , base = <NUM_LIT:10> ) ) <EOL> self . assertEqual ( '<STR_LIT>' , itoa ( - <NUM_LIT:10> , base = <NUM_LIT:10> ) ) <EOL> def test_itoa_hex_output ( self ) : <EOL> self . assertEqual ( '<STR_LIT:a>' , itoa ( <NUM_LIT:10> , base = <NUM_LIT:16> ) ) <EOL> self . assertEqual ( '<STR_LIT>' , itoa ( - <NUM_LIT:10> , base = <NUM_LIT:16> ) ) <EOL> def test_itoa_bin_output ( self ) : <EOL> self . assertEqual ( '<STR_LIT>' , itoa ( <NUM_LIT:10> , base = <NUM_LIT:2> ) ) <EOL> self . assertEqual ( '<STR_LIT>' , itoa ( - <NUM_LIT:10> , base = <NUM_LIT:2> ) ) <EOL> def test_convert_to_bin ( self ) : <EOL> self . assertEqual ( <NUM_LIT:0> , convert_to_bin ( <NUM_LIT:0> ) ) <EOL> self . assertEqual ( <NUM_LIT> , convert_to_bin ( <NUM_LIT> ) ) <EOL> def test_convert_to_bcd ( self ) : <EOL> self . assertEqual ( <NUM_LIT:0> , convert_to_bcd ( <NUM_LIT:0> ) ) <EOL> self . assertEqual ( <NUM_LIT> , convert_to_bcd ( <NUM_LIT> ) ) <EOL> def test_suite ( ) : <EOL> return unittest . findTestCases ( sys . modules [ __name__ ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( defaultTest = '<STR_LIT>' ) </s>
