def testArrayMethod(self):

    class arraylike(object):
        dtype = onp.float32

        def __array__(self, dtype=None):
            return 3.0
    a = arraylike()
    ans = jnp.array(a)
    assert (ans == 3.0)
def testArrayMethod(self):

    class arraylike(object):
        dtype = onp.float32

        def __array__(self, dtype=None):
            return 3.0
    a = arraylike()
    ans = jnp.array(a)
    assert (ans == 3.0)