summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-20 15:52:56 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-20 15:52:56 +0000
commit472672dfe6e968c41c16b81c8db3f0f73d2f825f (patch)
treee63daaa59d60e1d793f688fee537191d15b449a6 /sample
parent3f0eab216fb87faec688f772ad7c6cc13b5fdefd (diff)
* sample/test.rb: avoid the MSVCRT *printf problem(float).
[ruby-dev:20037] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index ebed593960..b37178f96b 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -995,8 +995,11 @@ nan.test(-0.001);
nan.test(1.0/0);
nan.test(-1.0/0);
-s = "3.7517675036461267e+17"
-test_ok(s == sprintf("%.16e", s.to_f))
+#s = "3.7517675036461267e+17"
+#test_ok(s == sprintf("%.16e", s.to_f))
+f = 3.7517675036461267e+17
+test_ok(f == sprintf("%.16e", f).to_f)
+
test_check "bignum"
def fact(n)