<s> from __future__ import division <EOL> from sympy import Rational , Symbol , Float <EOL> def test_truediv ( ) : <EOL> assert <NUM_LIT:1> / <NUM_LIT:2> != <NUM_LIT:0> <EOL> assert Rational ( <NUM_LIT:1> ) / <NUM_LIT:2> != <NUM_LIT:0> <EOL> def dotest ( s ) : <EOL> x = Symbol ( "<STR_LIT:x>" ) <EOL> y = Symbol ( "<STR_LIT:y>" ) <EOL> l = [ <EOL> Rational ( <NUM_LIT:2> ) , <EOL> Float ( "<STR_LIT>" ) , <EOL> x , <EOL> y , <EOL> pow ( x , y ) * y , <EOL> <NUM_LIT:5> , <EOL> <NUM_LIT> <EOL> ] <EOL> for x in l : <EOL> for y in l : <EOL> s ( x , y ) <EOL> return True <EOL> def test_basic ( ) : <EOL> def s ( a , b ) : <EOL> x = a <EOL> x = + a <EOL> x = - a <EOL> x = a + b <EOL> x = a - b <EOL> x = a * b <EOL> x = a / b <EOL> x = a ** b <EOL> assert dotest ( s ) <EOL> def test_ibasic ( ) : <EOL> def s ( a , b ) : <EOL> x = a <EOL> x += b <EOL> x = a <EOL> x -= b <EOL> x = a <EOL> x *= b <EOL> x = a <EOL> x /= b <EOL> assert dotest ( s ) </s>
