From: Robert Klemme Date: 2010-05-30T18:30:13+09:00 Subject: Re: Date.today problem on linux with Ruby 1.8.6 On 30.05.2010 02:34, Jarmo Pertman wrote: > i executed make test and it seems that some of the tests are also > failing: > jarmo@jarmo-laptop:~/Downloads/ruby-1.8.6-p399$ make test > not ok float 1 -- ./sample/test.rb:1172 > not ok float 2 -- ./sample/test.rb:1173 > not ok float 3 -- ./sample/test.rb:1174 > not ok float 4 -- ./sample/test.rb:1175 > not ok float 5 -- ./sample/test.rb:1176 > not ok float 6 -- ./sample/test.rb:1177 > not ok float 7 -- ./sample/test.rb:1178 > not ok float 8 -- ./sample/test.rb:1179 > not ok float 9 -- ./sample/test.rb:1180 > test failed > make: *** [test] Error 1 > > > # test.rb > 1172 test_ok(2.6.floor == 2) > 1173 test_ok((-2.6).floor == -3) > 1174 test_ok(2.6.ceil == 3) > 1175 test_ok((-2.6).ceil == -2) > 1176 test_ok(2.6.truncate == 2) > 1177 test_ok((-2.6).truncate == -2) > 1178 test_ok(2.6.round == 3) > 1179 test_ok((-2.4).truncate == -2) > 1180 test_ok((13.4 % 1 - 0.4).abs< 0.0001) > > Is there any special switches or commands i should use while compiling? > > Jarmo If you are compiling from source anyway I'd probably switch to 1.8.7. You could also check [1] to see whether it's a known bug already. Cheers robert [1] http://redmine.ruby-lang.org/projects/show/ruby-186 -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/