forked from M-Labs/artiq
1
0
Fork 0

compiler: fix tests.

This commit is contained in:
whitequark 2015-12-10 23:16:36 +08:00
parent 2d906daf7f
commit 25027f6907
2 changed files with 3 additions and 1 deletions

View File

@ -733,6 +733,8 @@ class TypePrinter(object):
attrs = ", ".join(["{}: {}".format(attr, self.name(typ.attributes[attr])) attrs = ", ".join(["{}: {}".format(attr, self.name(typ.attributes[attr]))
for attr in typ.attributes]) for attr in typ.attributes])
return "<constructor {} {{{}}}>".format(typ.name, attrs) return "<constructor {} {{{}}}>".format(typ.name, attrs)
elif isinstance(typ, TBuiltin):
return "<builtin {}>".format(typ.name)
elif isinstance(typ, TValue): elif isinstance(typ, TValue):
return repr(typ.value) return repr(typ.value)
elif isinstance(typ, TDelay): elif isinstance(typ, TDelay):

View File

@ -1,5 +1,5 @@
# 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: as x:<function parallel> # CHECK-L: as x:<builtin parallel>
with parallel as x: pass with parallel as x: pass