changeset 1265:4045c231587a

Fixed two bugs due to changes in the preprocessing interface.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Fri, 09 Oct 2009 11:39:54 +0200
parents 2fd999c906ca
children a1193532c181
files viff/test/test_active_runtime.py viff/test/test_basic_runtime.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/viff/test/test_active_runtime.py	Thu Oct 08 15:25:15 2009 +0200
+++ b/viff/test/test_active_runtime.py	Fri Oct 09 11:39:54 2009 +0200
@@ -113,7 +113,7 @@
                 results.append(result)
             return gatherResults(results)
 
-        count, triples = runtime.generate_triples(self.Zp)
+        count, triples = runtime.generate_triples(self.Zp, 1)
         self.assertEquals(count, runtime.num_players - 2*runtime.threshold)
 
         runtime.schedule_callback(triples, check)
--- a/viff/test/test_basic_runtime.py	Thu Oct 08 15:25:15 2009 +0200
+++ b/viff/test/test_basic_runtime.py	Fri Oct 09 11:39:54 2009 +0200
@@ -36,9 +36,9 @@
         """
         self.assertEquals(runtime.program_counter, [0])
         runtime.synchronize()
-        self.assertEquals(runtime.program_counter, [0])
+        self.assertEquals(runtime.program_counter, [1])
         runtime.synchronize()
-        self.assertEquals(runtime.program_counter, [0])
+        self.assertEquals(runtime.program_counter, [2])
 
     @protocol
     def test_callback(self, runtime):