def test_mixeddiv():
 i = iscalar()
 d = dscalar()
 assert (0 == function([i, d], (d * (i // (i + 1))))(3, 1.0))

def test_mixeddiv ( ) : i = iscalar ( ) d = dscalar ( ) assert ( 0 == function ( [ i , d ] , ( d * ( i // ( i + 1 ) ) ) ) ( 3 , 1.0 ) )
test that int division is preserved .