<s> import py <EOL> from pypy . jit . tl import tlr <EOL> from pypy . translator . c . test import test_boehm <EOL> class TestTLR ( test_boehm . AbstractGCTestClass ) : <EOL> def test_square ( self ) : <EOL> assert tlr . interpret ( tlr . SQUARE , <NUM_LIT:1> ) == <NUM_LIT:1> <EOL> assert tlr . interpret ( tlr . SQUARE , <NUM_LIT:7> ) == <NUM_LIT> <EOL> assert tlr . interpret ( tlr . SQUARE , <NUM_LIT:9> ) == <NUM_LIT> <EOL> def test_translate ( self ) : <EOL> py . test . skip ( "<STR_LIT:?>" ) <EOL> def driver ( ) : <EOL> bench = Benchmark ( ) <EOL> while <NUM_LIT:1> : <EOL> res = tlr . interpret ( tlr . SQUARE , <NUM_LIT> ) <EOL> if bench . stop ( ) : <EOL> break <EOL> return res <EOL> fn = self . getcompiled ( driver , [ ] ) <EOL> res = fn ( ) <EOL> assert res == <NUM_LIT> * <NUM_LIT> </s>
