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

* test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.

[ruby-talk:88852]

        * test/csv/{bom.csv,mac.csv}: removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2003-12-28 02:57:25 +00:00
parent 67f1d099d4
commit 83fe8f3240
5 changed files with 17 additions and 8 deletions

View file

@ -1,3 +1,10 @@
Sun Dec 28 11:55:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.
[ruby-talk:88852]
* test/csv/{bom.csv,mac.csv}: removed.
Sun Dec 28 08:56:51 2003 Dave Thomas <dave@pragprog.com> Sun Dec 28 08:56:51 2003 Dave Thomas <dave@pragprog.com>
* eval.c: Thead[Group] RDoc (thanks to MG) * eval.c: Thead[Group] RDoc (thanks to MG)

View file

@ -670,8 +670,6 @@ sample/wsdl/googleSearch/sjissearch.sh
sample/wsdl/googleSearch/wsdlDriver.rb sample/wsdl/googleSearch/wsdlDriver.rb
sample/wsdl/raa/raa.wsdl sample/wsdl/raa/raa.wsdl
sample/wsdl/raa/soap4r.rb sample/wsdl/raa/soap4r.rb
test/csv/bom.csv
test/csv/mac.csv
test/csv/test_csv.rb test/csv/test_csv.rb
test/digest/test_digest.rb test/digest/test_digest.rb
test/drb/drbtest.rb test/drb/drbtest.rb

View file

@ -1,2 +0,0 @@
"foo"
"bar"
1 foo
2 bar

View file

@ -1,2 +0,0 @@
"Avenches","aus Umgebung"
"Bad Hersfeld","Ausgrabung"
1 Avenches aus Umgebung
2 Bad Hersfeld Ausgrabung

View file

@ -275,8 +275,8 @@ public
@infiletsv = File.join(@tmpdir, 'in.tsv') @infiletsv = File.join(@tmpdir, 'in.tsv')
@emptyfile = File.join(@tmpdir, 'empty.csv') @emptyfile = File.join(@tmpdir, 'empty.csv')
@outfile = File.join(@tmpdir, 'out.csv') @outfile = File.join(@tmpdir, 'out.csv')
@bomfile = File.join(File.dirname(__FILE__), "bom.csv") @bomfile = File.join(@tmpdir, "bom.csv")
@macfile = File.join(File.dirname(__FILE__), "mac.csv") @macfile = File.join(@tmpdir, "mac.csv")
CSV.open(@infile, "w") do |writer| CSV.open(@infile, "w") do |writer|
@@fullCSVDataArray.each do |row| @@fullCSVDataArray.each do |row|
@ -293,6 +293,14 @@ public
CSV.generate(@emptyfile) do |writer| CSV.generate(@emptyfile) do |writer|
# Create empty file. # Create empty file.
end end
File.open(@bomfile, "wb") do |f|
f.write("\357\273\277\"foo\"\r\n\"bar\"\r\n")
end
File.open(@macfile, "wb") do |f|
f.write("\"Avenches\",\"aus Umgebung\"\r\"Bad Hersfeld\",\"Ausgrabung\"")
end
end end
def teardown def teardown