예제 #1
0
파일: RunPrimes.py 프로젝트: tfausak/class
def main():
    value = [0]

    while primes_read(sys.stdin, value):
        primes_print(sys.stdout, primes_eval(value[0]))
예제 #2
0
def main ():
	value = [0]

	while primes_read(sys.stdin, value):
		primes_print(sys.stdout, primes_eval(value[0]))
예제 #3
0
 def test_read5(self):
     reader = StringIO.StringIO(' \t1 \t\n')
     value = [0]
     result = primes_read(reader, value)
     self.assert_(result == True)
     self.assert_(value[0] == 1)
예제 #4
0
	def test_read5 (self):
		reader = StringIO.StringIO(' \t1 \t\n')
		value = [0]
		result = primes_read(reader, value)
		self.assert_(result == True)
		self.assert_(value[0] == 1)