[前][次][番号順一覧][スレッド一覧]

ruby-changes:36371

From: akr <ko1@a...>
Date: Sun, 16 Nov 2014 00:33:48 +0900 (JST)
Subject: [ruby-changes:36371] akr:r48452 (trunk): add an assertion.

akr	2014-11-16 00:33:34 +0900 (Sun, 16 Nov 2014)

  New Revision: 48452

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48452

  Log:
    add an assertion.

  Modified files:
    trunk/test/ruby/test_time.rb
Index: test/ruby/test_time.rb
===================================================================
--- test/ruby/test_time.rb	(revision 48451)
+++ test/ruby/test_time.rb	(revision 48452)
@@ -171,6 +171,7 @@ class TestTime < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time.rb#L171
     assert_equal(100000, Time.at(0.0001).nsec)
     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_equal(10, Time.at(0.00000001).nsec)
     assert_equal(1, Time.at(0.000000001).nsec)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]