test_helper.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:fftoptionlib 作者: arraystream 项目源码 文件源码
def test_to_array_with_same_dimension_5(self):
        res = to_array_with_same_dimension([1, 2, 3], 'put', None)
        exp_res = np.array([1, 2, 3]), np.array(['put', 'put', 'put']), np.array([None, None, None])
        npt.assert_array_equal(res[0], exp_res[0])
        npt.assert_array_equal(res[1], exp_res[1])
        npt.assert_array_equal(res[2], exp_res[2])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号