ruby-changes:56431
From: Nobuyoshi <ko1@a...>
Date: Sat, 13 Jul 2019 10:02:23 +0900 (JST)
Subject: [ruby-changes:56431] Nobuyoshi Nakada: e2bee86dc4 (master): Relaxed delta of nanosec from Float time
https://git.ruby-lang.org/ruby.git/commit/?id=e2bee86dc4 From e2bee86dc4ec60c8834b976b83491358c4cb5f00 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 13 Jul 2019 09:48:12 +0900 Subject: Relaxed delta of nanosec from Float time diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 7269bdc..43ede88 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -173,7 +173,7 @@ class TestTime < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time.rb#L173 assert_equal(10000, Time.at(0.00001).nsec) assert_equal(3000, Time.at(0.000003).nsec) assert_equal(200, Time.at(0.0000002r).nsec) - assert_equal(199, Time.at(0.0000002).nsec) + assert_in_delta(200, Time.at(0.0000002).nsec, 1, "should be within FP error") assert_equal(10, Time.at(0.00000001).nsec) assert_equal(1, Time.at(0.000000001).nsec) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/