mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
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
11 lines
265 B
Python
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>"
|