mirror of https://github.com/m-labs/artiq.git
test: added lit test for new error messages
This commit is contained in:
parent
e9988f9d3b
commit
d0d0a02fd0
|
@ -0,0 +1,13 @@
|
|||
# RUN: %python -m artiq.compiler.testbench.signature +diag %s >%t
|
||||
# RUN: OutputCheck %s --file-to-check=%t
|
||||
|
||||
class Foo:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
a = Foo()
|
||||
b = Foo()
|
||||
|
||||
# CHECK-L: ${LINE:+1}: error: Custom object comparison is not supported
|
||||
a > b
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# RUN: %python -m artiq.compiler.testbench.signature +diag %s >%t
|
||||
# RUN: OutputCheck %s --file-to-check=%t
|
||||
|
||||
class Foo:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
a = Foo()
|
||||
b = Foo()
|
||||
|
||||
# CHECK-L: ${LINE:+1}: error: Custom object inclusion test is not supported
|
||||
a in b
|
||||
|
Loading…
Reference in New Issue