Ejemplo n.º 1
0
    def test_doublelines(self):
        myprogram.doublelines(TestDoubleit.numbers_file_testor)
        old_vals = [int(line) for line in open(TestDoubleit.numbers_file_template)]
        new_vals = [int(line) for line in open(TestDoubleit.numbers_file_testor)]

        for old_val, new_val in zip(old_vals, new_vals) :
            assert int(new_val) == int(old_val) * 2
Ejemplo n.º 2
0
 def test_doublelines(self):
     myprogram.doublelines(TestDoubleIt.file_tester)
     old_vals = [int(line) for line in open(TestDoubleIt.file_template)]
     new_vals = [int(line) for line in open(TestDoubleIt.file_tester)]
     for old_val, new_val in zip(old_vals, new_vals):
         assert int(new_val) == int(old_val) * 2
     print("Test complete!")
Ejemplo n.º 3
0
 def test_doublelines(self):
     myprogram.doublelines(TestDoubleit.numbers_file_tester)
     old_vals = [
         int(line) for line in open(TestDoubleit.numbers_file_template)
     ]
     new_vals = [
         int(line) for line in open(TestDoubleit.numbers_file_tester)
     ]
Ejemplo n.º 4
0
	def test_doublelines(self):
		myprogram.doublelines(TestDoubleit.numbers_file_testor)
		old_vals = [int(line) for line in open(TestDoubleit.numbers_file_template)]
		new_vals = [int(line) for line in open(TestDoubleit.numbers_file_testor)]
		for old_val, new_val in zip(old_vals, new_vals):
			assert int(new_val) == int(old_val) * 2