summaryrefslogtreecommitdiffstats
path: root/test/scanf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
commitd17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad (patch)
tree5e35d5b41aae961b37cf6632f60c42f51c7aa775 /test/scanf
parent101e79d7b434c01c0e6f4bcc480003858ab8e1a4 (diff)
downloadruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.tar.gz
ruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.tar.xz
ruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.zip
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/scanf')
-rw-r--r--test/scanf/test_scanf.rb6
-rw-r--r--test/scanf/test_scanfblocks.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/scanf/test_scanf.rb b/test/scanf/test_scanf.rb
index 2e9e10ba5..893b51e73 100644
--- a/test/scanf/test_scanf.rb
+++ b/test/scanf/test_scanf.rb
@@ -240,8 +240,8 @@ module ScanfTests
[ "%*5f%*d %*d %s", "1.2e23 45 string", ["string"] ],
[ "%f %*d %s", "12.e23 45 string", ["12.e23".to_f, "string"] ],
[ "%5f %d %s", "1.2e23 string", ["1.2e2".to_f, 3, "string"] ],
- [ "%s %f %s %d %x%c%c%c%c",
- "float: 1.2e23 dec/hex: 135a23 abc",
+ [ "%s %f %s %d %x%c%c%c%c",
+ "float: 1.2e23 dec/hex: 135a23 abc",
["float:", "1.2e23".to_f, "dec/hex:", 135, "a23".hex, " ", "a", "b", "c" ] ],
# Testing 's'
@@ -305,7 +305,7 @@ class TestIOScanf
extend ScanfTests
tmpfilename = "#{Dir.tmpdir}/iotest.dat.#{$$}"
-
+
i = 1
self.tests.each do |test|
define_method("test_#{i}") do ||
diff --git a/test/scanf/test_scanfblocks.rb b/test/scanf/test_scanfblocks.rb
index 907a3c283..aea5033a5 100644
--- a/test/scanf/test_scanfblocks.rb
+++ b/test/scanf/test_scanfblocks.rb
@@ -20,7 +20,7 @@ class TestScanfBlock < Test::Unit::TestCase
Brahms 1833
EOS
end
-
+
alias set_up setup
def test_str1
res = @str.scanf("%s%d") { |name, year| "#{name} was born in #{year}." }
@@ -63,7 +63,7 @@ alias set_up setup
"Brahms was born in 1833." ],res)
fh.close
ensure
- File.delete(fn)
+ File.delete(fn)
end
def test_io2
@@ -75,7 +75,7 @@ alias set_up setup
assert_equal(fh.scanf("%d%f%s") {}, [])
fh.close
ensure
- File.delete(fn)
+ File.delete(fn)
end
end