forked from M-Labs/artiq
1
0
Fork 0

compiler: Fix inferencer tests after adding TArray.num_dims

This commit is contained in:
David Nadlinger 2020-07-27 23:19:43 +01:00
parent cb1cadb46a
commit e82357d180
2 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: numpy.array(elt='a)
# CHECK-L: numpy.array(elt='a, num_dims=1)
array([])
# CHECK-L: numpy.array(elt=numpy.int?)
# CHECK-L: numpy.array(elt=numpy.int?, num_dims=1)
array([1, 2, 3])
# CHECK-L: numpy.array(elt=numpy.int?)
# CHECK-L: numpy.array(elt=numpy.int?, num_dims=2)
array([[1, 2, 3], [4, 5, 6]])
# CHECK-L: numpy.array(elt=list(elt=numpy.int?))
# CHECK-L: numpy.array(elt=list(elt=numpy.int?), num_dims=1)
array([[1, 2, 3], [4, 5]])

View File

@ -64,7 +64,7 @@ kb = bytearray(b"x")
# CHECK-L: kb:bytearray
l = array([1])
# CHECK-L: l:numpy.array(elt=numpy.int?)
# CHECK-L: l:numpy.array(elt=numpy.int?, num_dims=1)
IndexError()
# CHECK-L: IndexError:<constructor IndexError {}>():IndexError