forked from M-Labs/artiq
test: added lit test for new error messages
This commit is contained in:
parent
7406a1f983
commit
083b3f5c7b
|
@ -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