viff

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 diff
     1.1 --- a/viff/test/test_active_runtime.py	Thu Oct 08 15:25:15 2009 +0200
     1.2 +++ b/viff/test/test_active_runtime.py	Fri Oct 09 11:39:54 2009 +0200
     1.3 @@ -113,7 +113,7 @@
     1.4                  results.append(result)
     1.5              return gatherResults(results)
     1.6  
     1.7 -        count, triples = runtime.generate_triples(self.Zp)
     1.8 +        count, triples = runtime.generate_triples(self.Zp, 1)
     1.9          self.assertEquals(count, runtime.num_players - 2*runtime.threshold)
    1.10  
    1.11          runtime.schedule_callback(triples, check)
     2.1 --- a/viff/test/test_basic_runtime.py	Thu Oct 08 15:25:15 2009 +0200
     2.2 +++ b/viff/test/test_basic_runtime.py	Fri Oct 09 11:39:54 2009 +0200
     2.3 @@ -36,9 +36,9 @@
     2.4          """
     2.5          self.assertEquals(runtime.program_counter, [0])
     2.6          runtime.synchronize()
     2.7 -        self.assertEquals(runtime.program_counter, [0])
     2.8 +        self.assertEquals(runtime.program_counter, [1])
     2.9          runtime.synchronize()
    2.10 -        self.assertEquals(runtime.program_counter, [0])
    2.11 +        self.assertEquals(runtime.program_counter, [2])
    2.12  
    2.13      @protocol
    2.14      def test_callback(self, runtime):