Files
concrete/compiler/tests/python/test_hlfhe_dialect.py
youben11 5a308ddc75 fix(python): add missing import
Also added a test to catch future similar failure. Mainly, we didn't
have tests that imported and used the HLFHE dialect from the python
bindings
2021-10-08 14:21:45 +01:00

11 lines
265 B
Python

from mlir.ir import Context
from zamalang import register_dialects
from zamalang.dialects import hlfhe
def test_eint():
ctx = Context()
register_dialects(ctx)
eint = hlfhe.EncryptedIntegerType.get(ctx, 6)
assert eint.__str__() == "!HLFHE.eint<6>"