-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python test failures #13
Comments
Does the C++ side tests fail too? If this is only a python-side problem, try adding the debug printing lines to see what's wrong here. def test_add_sub(self):
ghe = self.ghe
message1 = ghe.random_simd_full()
message2 = ghe.random_simd_full()
plain1 = ghe.encoder.encode_simd(message1)
plain2 = ghe.encoder.encode_simd(message2)
cipher1 = ghe.encryptor.encrypt_symmetric_new(plain1, False)
cipher2 = ghe.encryptor.encrypt_symmetric_new(plain2, False)
added = ghe.evaluator.add_new(cipher1, cipher2)
decoded = ghe.encoder.decode_simd(ghe.decryptor.decrypt_new(added))
self.tester.assertTrue(ghe.near_equal(ghe.add(message1, message2), decoded))
subtracted = ghe.evaluator.sub_new(cipher1, cipher2)
decoded = ghe.encoder.decode_simd(ghe.decryptor.decrypt_new(subtracted))
print(ghe.sub(message1, message2)) # added
print(decoded) # added
self.tester.assertTrue(ghe.near_equal(ghe.sub(message1, message2), decoded)) |
all the C++ tests passed, thanks, I will try. and are the interfaces of troy repo and troy-nova kept the same? |
Mostly the same for python interfaces. On C++/CUDA side the names are converted to snake_case from camelCase. Yes my wx is lightbulb128. |
hello, I built this lib and tested the python. found many failures see the log file:
test_results.log
The text was updated successfully, but these errors were encountered: