from test_util import *
from funkyyak import grad

def test_int_case():
    check_equivalent((lambda x:x*x)(2.0),         4.0)
    check_equivalent((lambda x:x*x)(2) + 0.0,     4.0)
    check_equivalent(grad(lambda x:x*x)(2.0),     4.0)
    check_equivalent(grad(lambda x:x*x)(2) + 0.0, 4.0)

Test that an int arg to grad is okay
Test that an int arg to grad is okay
