From 36322755211803cafc3afb55e95f3159b55b3a33 Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Tue, 5 Mar 2024 10:21:04 +0100 Subject: [PATCH] Move and rename kzg and rs test modules --- da/kzg_rs/test_fft.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 da/kzg_rs/test_fft.py diff --git a/da/kzg_rs/test_fft.py b/da/kzg_rs/test_fft.py deleted file mode 100644 index 5e1bf76..0000000 --- a/da/kzg_rs/test_fft.py +++ /dev/null @@ -1,16 +0,0 @@ -from unittest import TestCase - -from da.kzg_rs.common import BLS_MODULUS, ROOTS_OF_UNITY -from da.kzg_rs.poly import Polynomial -from da.kzg_rs.rs import encode, decode - - -class TestFFT(TestCase): - - def test_encode_decode(self): - poly = Polynomial(list(range(10)), modulus=BLS_MODULUS) - encoded = encode(poly, 2, ROOTS_OF_UNITY) - decoded = decode(encoded, ROOTS_OF_UNITY, len(poly)) - self.assertEqual(poly, decoded) - for i in range(len(poly)): - self.assertEqual(poly.eval(ROOTS_OF_UNITY[i]), decoded.eval(ROOTS_OF_UNITY[i]))