mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
test: added lit test for new error messages
This commit is contained in:
parent
e9988f9d3b
commit
d0d0a02fd0
13
artiq/test/lit/codegen/custom_comparison.py
Normal file
13
artiq/test/lit/codegen/custom_comparison.py
Normal file
@ -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
|
||||||
|
|
13
artiq/test/lit/codegen/custom_inclusion.py
Normal file
13
artiq/test/lit/codegen/custom_inclusion.py
Normal file
@ -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
Block a user