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

ruby-changes:36763

From: naruse <ko1@a...>
Date: Mon, 15 Dec 2014 15:18:07 +0900 (JST)
Subject: [ruby-changes:36763] naruse:r48844 (trunk): comment out for x86 extended precision

naruse	2014-12-15 15:17:58 +0900 (Mon, 15 Dec 2014)

  New Revision: 48844

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

  Log:
    comment out for x86 extended precision

  Modified files:
    trunk/test/ruby/test_sprintf.rb
Index: test/ruby/test_sprintf.rb
===================================================================
--- test/ruby/test_sprintf.rb	(revision 48843)
+++ test/ruby/test_sprintf.rb	(revision 48844)
@@ -219,8 +219,9 @@ class TestSprintf < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_sprintf.rb#L219
                  sprintf("%20.0f", 36893488147419107329.0))
     assert_equal(" Inf", sprintf("% 0e", 1.0/0.0), "moved from btest/knownbug")
     assert_equal("       -0.", sprintf("%#10.0f", -0.5), "[ruby-dev:42552]")
-    assert_equal("0x1p+2",   sprintf('%.0a', Float('0x1.fp+1')),   "[ruby-dev:42551]")
-    assert_equal("-0x1.0p+2", sprintf('%.1a', Float('-0x1.ffp+1')), "[ruby-dev:42551]")
+    # out of spec
+    #assert_equal("0x1p+2",   sprintf('%.0a', Float('0x1.fp+1')),   "[ruby-dev:42551]")
+    #assert_equal("-0x1.0p+2", sprintf('%.1a', Float('-0x1.ffp+1')), "[ruby-dev:42551]")
   end
 
   def test_float_hex

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

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