Description:
removed extra puts in testdata import
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r239:b65b6924abe8 - - 1 file changed: 0 inserted, 2 deleted

@@ -90,26 +90,24
90 90
91 91 return testdata_filename
92 92 end
93 93
94 94 def import_test_pairs(dirname)
95 95 test_num = 1
96 96 while FileTest.exists? "#{dirname}/#{test_num}.in"
97 97 in_filename = "#{dirname}/#{test_num}.in"
98 98 sol_filename = "#{dirname}/#{test_num}.sol"
99 99
100 100 break if not FileTest.exists? sol_filename
101 101
102 - puts "#{dirname}"
103 -
104 102 test_pair = TestPair.new(:input => open(in_filename).read,
105 103 :solution => open(sol_filename).read,
106 104 :number => test_num,
107 105 :problem => @problem)
108 106 break if not test_pair.save
109 107
110 108 test_num += 1
111 109 end
112 110 return test_num > 1
113 111 end
114 112
115 113 def import_problem_description(dirname)
You need to be logged in to leave comments. Login now