1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Close created files [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-08-10 11:26:23 +09:00
parent 6902824729
commit 07e42e88d9
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 2 additions and 10 deletions

View file

@ -15,11 +15,7 @@ prelude: |
FileUtils.mkdir_p(data_dir) FileUtils.mkdir_p(data_dir)
1.upto(num_files) do |i| 1.upto(num_files) do |i|
f = File.open("#{data_dir}/c#{i}.rb", "w") File.write("#{data_dir}/c#{i}.rb", "class C#{i}\n""end\n")
f.puts <<-END
class C#{i}
end
END
end end
end end

View file

@ -15,11 +15,7 @@ prelude: |
FileUtils.mkdir_p(data_dir) FileUtils.mkdir_p(data_dir)
1.upto(num_files) do |i| 1.upto(num_files) do |i|
f = File.open("#{data_dir}/c#{i}.rb", "w") File.write("#{data_dir}/c#{i}.rb", "class C#{i}\n""end\n")
f.puts <<-END
class C#{i}
end
END
end end
end end