forked from M-Labs/artiq
compiler: Fix inferencer tests after adding TArray.num_dims
This commit is contained in:
parent
cb1cadb46a
commit
e82357d180
@ -1,13 +1,13 @@
|
|||||||
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
||||||
# RUN: OutputCheck %s --file-to-check=%t
|
# RUN: OutputCheck %s --file-to-check=%t
|
||||||
|
|
||||||
# CHECK-L: numpy.array(elt='a)
|
# CHECK-L: numpy.array(elt='a, num_dims=1)
|
||||||
array([])
|
array([])
|
||||||
|
|
||||||
# CHECK-L: numpy.array(elt=numpy.int?)
|
# CHECK-L: numpy.array(elt=numpy.int?, num_dims=1)
|
||||||
array([1, 2, 3])
|
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]])
|
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]])
|
array([[1, 2, 3], [4, 5]])
|
||||||
|
@ -64,7 +64,7 @@ kb = bytearray(b"x")
|
|||||||
# CHECK-L: kb:bytearray
|
# CHECK-L: kb:bytearray
|
||||||
|
|
||||||
l = array([1])
|
l = array([1])
|
||||||
# CHECK-L: l:numpy.array(elt=numpy.int?)
|
# CHECK-L: l:numpy.array(elt=numpy.int?, num_dims=1)
|
||||||
|
|
||||||
IndexError()
|
IndexError()
|
||||||
# CHECK-L: IndexError:<constructor IndexError {}>():IndexError
|
# CHECK-L: IndexError:<constructor IndexError {}>():IndexError
|
||||||
|
Loading…
Reference in New Issue
Block a user