diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-23 12:00:49 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-23 12:00:49 +0900 |
| commit | 52b2d092d38482257971789bc59257d16bbe8c4c (patch) | |
| tree | 8c26e1856b5fa52fa3b5c685e70beaa8499319a4 /test | |
| parent | 7ee8018d606bcb79ecefb49b18464a123dcb9a47 (diff) | |
| download | mruby-52b2d092d38482257971789bc59257d16bbe8c4c.tar.gz mruby-52b2d092d38482257971789bc59257d16bbe8c4c.zip | |
test t/*.rb spacing fix
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/array.rb | 8 | ||||
| -rw-r--r-- | test/t/float.rb | 14 | ||||
| -rw-r--r-- | test/t/hash.rb | 8 | ||||
| -rw-r--r-- | test/t/integer.rb | 2 | ||||
| -rw-r--r-- | test/t/math.rb | 4 | ||||
| -rw-r--r-- | test/t/string.rb | 4 |
6 files changed, 20 insertions, 20 deletions
diff --git a/test/t/array.rb b/test/t/array.rb index 68708202b..3b9dfedfb 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -83,7 +83,7 @@ end assert('Array#index', '15.2.12.5.14') do a = [1,2,3] - a.index(2) == 1 + a.index(2) == 1 end assert('Array#initialize', '15.2.12.5.15') do @@ -99,7 +99,7 @@ assert('Array#initialize_copy', '15.2.12.5.16') do a = [1,2,3] b = [].initialize_copy(a) - b == [1,2,3] + b == [1,2,3] end assert('Array#join', '15.2.12.5.17') do @@ -165,7 +165,7 @@ end assert('Array#rindex', '15.2.12.5.26') do a = [1,2,3] - a.rindex(2) == 1 + a.rindex(2) == 1 end assert('Array#shift', '15.2.12.5.27') do @@ -178,7 +178,7 @@ end assert('Array#size', '15.2.12.5.28') do a = [1,2,3] - a.size == 3 + a.size == 3 end assert('Array#slice', '15.2.12.5.29') do diff --git a/test/t/float.rb b/test/t/float.rb index 9f264bb42..fd87bb04f 100644 --- a/test/t/float.rb +++ b/test/t/float.rb @@ -9,7 +9,7 @@ assert('Float#+', '15.2.9.3.1') do a = 3.123456788 + 0.000000001 b = 3.123456789 + 1 - check_float(a, 3.123456789) and + check_float(a, 3.123456789) and check_float(b, 4.123456789) end @@ -17,8 +17,8 @@ assert('Float#-', '15.2.9.3.2') do a = 3.123456790 - 0.000000001 b = 5.123456789 - 1 - check_float(a, 3.123456789) and - check_float(b, 4.123456789) + check_float(a, 3.123456789) and + check_float(b, 4.123456789) end assert('Float#*', '15.2.9.3.3') do @@ -47,17 +47,17 @@ end assert('Float#<=>', '15.2.9.3.6') do a = 3.123456789 <=> 3.123456788 - b = 3.123456789 <=> 3.123456789 + b = 3.123456789 <=> 3.123456789 c = 3.123456789 <=> 3.123456790 a2 = 3.123456789 <=> 3 c2 = 3.123456789 <=> 4 - + a == 1 and b == 0 and c == -1 and a2 == 1 and c2 == -1 end assert('Float#==', '15.2.9.3.7') do - 3.1 == 3.1 and not (3.1 == 3.2) + 3.1 == 3.1 and not 3.1 == 3.2 end assert('Float#ceil', '15.2.9.3.8') do @@ -74,7 +74,7 @@ assert('Float#floor', '15.2.9.3.10') do end assert('Float#infinite?', '15.2.9.3.11') do - not 3.123456789.infinite? and + not 3.123456789.infinite? and (1.0 / 0.0).infinite? end diff --git a/test/t/hash.rb b/test/t/hash.rb index 62cf241f4..bb2ef1209 100644 --- a/test/t/hash.rb +++ b/test/t/hash.rb @@ -169,17 +169,17 @@ assert('Hash#member?', '15.2.13.4.21') do end assert('Hash#merge', '15.2.13.4.22') do - a = { 'abc_key' => 'abc_value', 'cba_key' => 'cba_value' } - b = { 'cba_key' => 'XXX', 'xyz_key' => 'xyz_value' } + a = { 'abc_key' => 'abc_value', 'cba_key' => 'cba_value' } + b = { 'cba_key' => 'XXX', 'xyz_key' => 'xyz_value' } result_1 = a.merge b result_2 = a.merge(b) do |key, original, new| original end - result_1 == {'abc_key' => 'abc_value', 'cba_key' => 'XXX', + result_1 == {'abc_key' => 'abc_value', 'cba_key' => 'XXX', 'xyz_key' => 'xyz_value' } and - result_2 == {'abc_key' => 'abc_value', 'cba_key' => 'cba_value', + result_2 == {'abc_key' => 'abc_value', 'cba_key' => 'cba_value', 'xyz_key' => 'xyz_value' } end diff --git a/test/t/integer.rb b/test/t/integer.rb index ec133785d..5e73b41b5 100644 --- a/test/t/integer.rb +++ b/test/t/integer.rb @@ -108,7 +108,7 @@ assert('Integer#downto', '15.2.8.3.15') do 3.downto(1) do |i| a += i end - a == 6 + a == 6 end assert('Integer#eql?', '15.2.8.3.16') do diff --git a/test/t/math.rb b/test/t/math.rb index 40ae53438..5b9da4cb3 100644 --- a/test/t/math.rb +++ b/test/t/math.rb @@ -10,7 +10,7 @@ assert('Math.sin PI/2') do end -assert('Fundamental trig identities') do +assert('Fundamental trig identities') do result = true N = 15 N.times do |i| @@ -26,7 +26,7 @@ assert('Fundamental trig identities') do result &= check_float((1/t) ** 2 + 1, (1/s) ** 2) end result -end +end assert('Math.erf 0') do check_float(Math.erf(0), 0) diff --git a/test/t/string.rb b/test/t/string.rb index 34a834f50..7fd48761c 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -115,7 +115,7 @@ end assert('String#chop!', '15.2.10.5.12') do a = '' b = 'abc' - + a.chop! b.chop! @@ -147,7 +147,7 @@ assert('String#each_line', '15.2.10.5.15') do a.each_line do |line| n_list << line end - + list == n_list end |
