changeset 648:e6cc20a96ac2

Test the new multiplication.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 05 Apr 2008 00:00:24 +0200
parents 5f643bb9c9fb
children 4bd7e5bf4f89
files viff/test/test_active_runtime.py
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/test/test_active_runtime.py	Sat Apr 05 00:00:24 2008 +0200
+++ b/viff/test/test_active_runtime.py	Sat Apr 05 00:00:24 2008 +0200
@@ -15,12 +15,19 @@
 # You should have received a copy of the GNU Lesser General Public
 # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
 
+import operator
+
 from twisted.internet.defer import gatherResults
 
-from viff.test.util import RuntimeTestCase, protocol
+from viff.test.util import RuntimeTestCase, protocol, BinaryOperatorTestCase
 from viff.runtime import ActiveRuntime, Share
 
 
+class MulTest(BinaryOperatorTestCase, RuntimeTestCase):
+    operator = operator.mul
+    runtime_class = ActiveRuntime
+
+
 class ActiveRuntimeTest(RuntimeTestCase):
     """Test for active security."""