diff options
Diffstat (limited to 'test/sca/test_test.py')
| -rw-r--r-- | test/sca/test_test.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/sca/test_test.py b/test/sca/test_test.py index 5a20f70..7b4f346 100644 --- a/test/sca/test_test.py +++ b/test/sca/test_test.py @@ -6,7 +6,6 @@ from pyecsca.sca import Trace, welch_ttest, student_ttest, ks_test class TTestTests(TestCase): - def setUp(self): self.a = Trace(np.array([20, 80], dtype=np.dtype("i1"))) self.b = Trace(np.array([30, 42], dtype=np.dtype("i1"))) @@ -15,9 +14,15 @@ class TTestTests(TestCase): def test_welch_ttest(self): self.assertIsNotNone(welch_ttest([self.a, self.b], [self.c, self.d])) - a = Trace(np.array([19.8, 20.4, 19.6, 17.8, 18.5, 18.9, 18.3, 18.9, 19.5, 22.0])) - b = Trace(np.array([28.2, 26.6, 20.1, 23.3, 25.2, 22.1, 17.7, 27.6, 20.6, 13.7])) - c = Trace(np.array([20.2, 21.6, 27.1, 13.3, 24.2, 20.1, 11.7, 25.6, 26.6, 21.4])) + a = Trace( + np.array([19.8, 20.4, 19.6, 17.8, 18.5, 18.9, 18.3, 18.9, 19.5, 22.0]) + ) + b = Trace( + np.array([28.2, 26.6, 20.1, 23.3, 25.2, 22.1, 17.7, 27.6, 20.6, 13.7]) + ) + c = Trace( + np.array([20.2, 21.6, 27.1, 13.3, 24.2, 20.1, 11.7, 25.6, 26.6, 21.4]) + ) result = welch_ttest([a, b], [b, c], dof=True, p_value=True) self.assertIsNotNone(result) @@ -28,7 +33,6 @@ class TTestTests(TestCase): class KolmogorovSmirnovTests(TestCase): - def test_ks_test(self): self.assertIsNone(ks_test([], [])) |
