changeset 760:591ab6199980

Test new actively secure comparison protocols.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 15 May 2008 09:41:57 +0200
parents 16fe2bd2edec
children c947486e9535
files viff/test/test_runtime_comp.py
diffstat 1 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/test/test_runtime_comp.py	Thu May 15 09:41:27 2008 +0200
+++ b/viff/test/test_runtime_comp.py	Thu May 15 09:41:57 2008 +0200
@@ -20,6 +20,7 @@
 import operator
 
 from viff.comparison import Toft05Runtime, Toft07Runtime
+from viff.comparison import ActiveToft05Runtime, ActiveToft07Runtime
 from viff.test.util import RuntimeTestCase, BinaryOperatorTestCase
 
 
@@ -43,6 +44,28 @@
     operator = operator.le
 
 
+
+class ActiveToft05GreaterThanTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft05Runtime
+    operator = operator.gt
+
+
+class ActiveToft05GreaterThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft05Runtime
+    operator = operator.ge
+
+
+class ActiveToft05LessThanTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft05Runtime
+    operator = operator.lt
+
+
+class ActiveToft05LessThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft05Runtime
+    operator = operator.le
+
+
+
 class Toft07GreaterThanTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft07Runtime
     operator = operator.gt
@@ -61,3 +84,24 @@
 class Toft07LessThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
     runtime_class = Toft07Runtime
     operator = operator.le
+
+
+
+class ActiveToft07GreaterThanTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft07Runtime
+    operator = operator.gt
+
+
+class ActiveToft07GreaterThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft07Runtime
+    operator = operator.ge
+
+
+class ActiveToft07LessThanTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft07Runtime
+    operator = operator.lt
+
+
+class ActiveToft07LessThanEqualTest(BinaryOperatorTestCase, RuntimeTestCase):
+    runtime_class = ActiveToft07Runtime
+    operator = operator.le