提交 c170d92b authored 作者: Jeremiah Lowin's avatar Jeremiah Lowin

add tests for int inputs (perform)

上级 71d99506
......@@ -4362,6 +4362,18 @@ class t_dot(unittest.TestCase):
def test_dot_3d_3d(self):
self.cmp_dot(rand(4,5,6), rand(8,6,7))
def test_dot_0di_0di(self):
self.cmp_dot(randint(1)[0], randint(1)[0])
def test_dot_0di_1d(self):
self.cmp_dot(randint(1)[0], rand(3))
def test_dot_0di_2d(self):
self.cmp_dot(randint(1)[0], rand(3,4))
def test_dot_0di_3d(self):
self.cmp_dot(randint(1)[0], rand(3,4,5))
def not_aligned(self, x, y):
ctv_backup = config.compute_test_value
config.compute_test_value = 'off'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论