summaryrefslogtreecommitdiff
path: root/test/test_mathn.rb
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:50:32 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:50:32 +0000
commit5385ae9af43208c014040ed1025b09415d48b36f (patch)
tree099bef333ef1a2c93c01e5a07486b287d36e3962 /test/test_mathn.rb
parent0b87f8d4cfa627173037c00712e28eb0d5df8307 (diff)
* rational.c (numeric_quo): move num_quo in numeric.c to numeric_quo
in rational.c to refer canonicalization state for mathn support. [ruby-core:41575] [Bug #5736] * numeric.c (num_quo): ditto. * test/test_mathn.rb: add a test for the change at r41109. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_mathn.rb')
-rw-r--r--test/test_mathn.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_mathn.rb b/test/test_mathn.rb
index 7f2b294bba..135f66f261 100644
--- a/test/test_mathn.rb
+++ b/test/test_mathn.rb
@@ -9,4 +9,10 @@ class TestMathn < Test::Unit::TestCase
assert_in_out_err ['-r', 'mathn/complex', '-e', 'a=Complex(0,1)**4;!a'], "", [], [], '[ruby-core:44170]'
assert_in_out_err ['-r', 'mathn/complex', '-e', 'a=Complex(0,1)**5;!a'], "", [], [], '[ruby-core:44170]'
end
+
+ def test_quo
+ assert_in_out_err ['-r', 'mathn'], <<-EOS, %w(OK), [], '[ruby-core:41575]'
+ 1.quo(2); puts :OK
+ EOS
+ end
end