mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
* test/soap/marshal/test_marshal.rb: ditto. * test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to RUBYBIN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d50d6d396a
commit
16658578a5
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
Sun Oct 5 14:37:39 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
|
||||||
|
|
||||||
|
* test/soap/marshal/test_marshal.rb: ditto.
|
||||||
|
|
||||||
|
* test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to
|
||||||
|
RUBYBIN.
|
||||||
|
|
||||||
Sun Oct 5 13:47:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
Sun Oct 5 13:47:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests
|
* test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests
|
||||||
|
|
|
@ -600,7 +600,7 @@ private
|
||||||
year, @data.mon, @data.mday, @data.hour, @data.min, @data.sec)
|
year, @data.mon, @data.mday, @data.hour, @data.min, @data.sec)
|
||||||
if @data.sec_fraction.nonzero?
|
if @data.sec_fraction.nonzero?
|
||||||
fr = @data.sec_fraction * SecInDay
|
fr = @data.sec_fraction * SecInDay
|
||||||
shiftsize = fr.denominator.to_s.size
|
shiftsize = fr.denominator.to_s.size + 1
|
||||||
fr_s = (fr * (10 ** shiftsize)).to_i.to_s
|
fr_s = (fr * (10 ** shiftsize)).to_i.to_s
|
||||||
s << '.' << '0' * (shiftsize - fr_s.size) << fr_s.sub(/0+$/, '')
|
s << '.' << '0' * (shiftsize - fr_s.size) << fr_s.sub(/0+$/, '')
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,7 +11,11 @@ module Calc
|
||||||
|
|
||||||
class TestCalcCGI < Test::Unit::TestCase
|
class TestCalcCGI < Test::Unit::TestCase
|
||||||
# This test shuld be run after installing ruby.
|
# This test shuld be run after installing ruby.
|
||||||
RUBYBIN = File.join(Config::CONFIG["bindir"], Config::CONFIG["ruby_install_name"])
|
RUBYBIN = File.join(
|
||||||
|
Config::CONFIG["bindir"],
|
||||||
|
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]
|
||||||
|
)
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
logger = Logger.new(STDERR)
|
logger = Logger.new(STDERR)
|
||||||
logger.level = Logger::Severity::FATAL
|
logger.level = Logger::Severity::FATAL
|
||||||
|
|
|
@ -199,7 +199,10 @@ module MarshalTestLib
|
||||||
|
|
||||||
class MyTime < Time; def initialize(v, *args) super(*args); @v = v; end end
|
class MyTime < Time; def initialize(v, *args) super(*args); @v = v; end end
|
||||||
def test_time
|
def test_time
|
||||||
marshal_equal(Time.now)
|
# once there was a bug caused by usec overflow. try a little harder.
|
||||||
|
10.times do
|
||||||
|
marshal_equal(Time.now)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_time_subclass
|
def test_time_subclass
|
||||||
|
|
Loading…
Add table
Reference in a new issue