mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Removed deprecated extensions of mathn.
* ext/mathn/{complex,rational}: Removed from ruby core. [fix GH-1542][Feature #13334][ruby-core:80247] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b58a30e1c1
commit
7b3ac07781
10 changed files with 0 additions and 37 deletions
|
@ -181,10 +181,6 @@ Zachary Scott (zzak)
|
|||
Nobuyuki Nakada (nobu)
|
||||
[ext/io/wait]
|
||||
Nobuyuki Nakada (nobu)
|
||||
[ext/mathn/complex]
|
||||
Keiju ISHITSUKA (keiju)
|
||||
[ext/mathn/rational]
|
||||
Keiju ISHITSUKA (keiju)
|
||||
[ext/nkf]
|
||||
NARUSE, Yui (narse)
|
||||
[ext/objspace]
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
#json
|
||||
#json/generator
|
||||
#json/parser
|
||||
#mathn/complex
|
||||
#mathn/rational
|
||||
#nkf
|
||||
#objspace
|
||||
#openssl
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
# #json
|
||||
# json/generator
|
||||
# json/parser
|
||||
# mathn/complex
|
||||
# mathn/rational
|
||||
# nkf
|
||||
# objspace
|
||||
# #openssl
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
extern void nucomp_canonicalization(int);
|
||||
|
||||
void
|
||||
Init_complex(void)
|
||||
{
|
||||
nucomp_canonicalization(1);
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
# frozen_string_literal: false
|
||||
require "mkmf"
|
||||
|
||||
create_makefile "mathn/complex"
|
|
@ -1,4 +0,0 @@
|
|||
# frozen_string_literal: false
|
||||
require "mkmf"
|
||||
|
||||
create_makefile "mathn/rational"
|
|
@ -1,7 +0,0 @@
|
|||
extern void nurat_canonicalization(int);
|
||||
|
||||
void
|
||||
Init_rational(void)
|
||||
{
|
||||
nurat_canonicalization(1);
|
||||
}
|
|
@ -46,9 +46,6 @@ require "cmath.rb"
|
|||
require "matrix.rb"
|
||||
require "prime.rb"
|
||||
|
||||
require "mathn/rational"
|
||||
require "mathn/complex"
|
||||
|
||||
unless defined?(Math.exp!)
|
||||
Object.instance_eval{remove_const :Math}
|
||||
Math = CMath # :nodoc:
|
||||
|
|
|
@ -61,8 +61,6 @@ class TestExtLibs < Test::Unit::TestCase
|
|||
check_existence "io/nonblock"
|
||||
check_existence "io/wait"
|
||||
check_existence "json"
|
||||
check_existence "mathn/complex"
|
||||
check_existence "mathn/rational"
|
||||
check_existence "nkf"
|
||||
check_existence "objspace"
|
||||
check_existence "openssl", "this may be false positive, but should assert because rubygems requires this"
|
||||
|
|
|
@ -7,8 +7,6 @@ class TestMathn < Test::Unit::TestCase
|
|||
stderr = $VERBOSE ? ["lib/mathn.rb is deprecated"] : []
|
||||
assert_in_out_err ['-r', 'mathn', '-e', 'a=1**2;!a'], "", [], stderr, '[ruby-core:25740]'
|
||||
assert_in_out_err ['-r', 'mathn', '-e', 'a=(1 << 126)**2;!a'], "", [], stderr, '[ruby-core:25740]'
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue