Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/narray/files/
Date: Wed, 09 Aug 2017 06:21:29
Message-Id: 1502259678.f904a8db6b691b59f2e592598c73454cacabb36e.monsieurp@gentoo
1 commit: f904a8db6b691b59f2e592598c73454cacabb36e
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 7 15:57:14 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 9 06:21:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f904a8db
7
8 dev-ruby/narray: remove unused patch.
9
10 .../narray/files/narray-0.6.0.8-fix-tests.patch | 69 ----------------------
11 1 file changed, 69 deletions(-)
12
13 diff --git a/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch b/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch
14 deleted file mode 100644
15 index 1e3b6ed6ae8..00000000000
16 --- a/dev-ruby/narray/files/narray-0.6.0.8-fix-tests.patch
17 +++ /dev/null
18 @@ -1,69 +0,0 @@
19 -From c56dc59527f0681dae7175b2fcab1fe534444f52 Mon Sep 17 00:00:00 2001
20 -From: Masahiro TANAKA <masa16.tanaka@×××××.com>
21 -Date: Thu, 9 May 2013 16:47:50 +0900
22 -Subject: [PATCH] fix tests for change in Complex class
23 -
24 ----
25 - test/testcomplex.rb | 4 ++--
26 - test/testmath.rb | 8 ++++----
27 - test/testpow.rb | 4 ++--
28 - 3 files changed, 8 insertions(+), 8 deletions(-)
29 -
30 -diff --git a/test/testcomplex.rb b/test/testcomplex.rb
31 -index 7be2e18..8a6346d 100644
32 ---- a/test/testcomplex.rb
33 -+++ b/test/testcomplex.rb
34 -@@ -10,8 +10,8 @@ def testop(a,b)
35 - print "a**b = "; p a**b
36 - end
37 -
38 --a = NArray.complex(4,1).indgen!.sbt!(-1) + 0.25.im
39 --b = NArray.complex(1,3).indgen!.add!(-0.5).mul!(0.5.im)
40 -+a = NArray.complex(4,1).indgen!.sbt!(-1) + Complex(0,0.25)
41 -+b = NArray.complex(1,3).indgen!.add!(-0.5).mul!(Complex(0,0.5))
42 - testop(a,b)
43 -
44 - # compare a/b with real-number operation
45 -diff --git a/test/testmath.rb b/test/testmath.rb
46 -index 0bf70d3..0aaf089 100644
47 ---- a/test/testmath.rb
48 -+++ b/test/testmath.rb
49 -@@ -4,10 +4,10 @@
50 - def pr x
51 - x.each{|i|
52 - if i.kind_of?(Complex)
53 -- printf("%.3f%+.3fi ",i.real,i.image)
54 -+ printf("%.3f%+.3fi ",i.real,i.imag)
55 - else
56 - printf("%.3f ",i)
57 -- end
58 -+ end
59 - }
60 - print "\n"
61 - end
62 -@@ -44,5 +44,5 @@ def testmath(x)
63 - testmath NArray.sfloat(6).indgen.div!(2)
64 - testmath NArray.float(6).indgen.div!(2)
65 -
66 --testmath NArray.scomplex(6).indgen.div!(2)-2 - 1.im
67 --testmath NArray.complex(6).indgen!/5-0.5# - 0.3.im
68 -+testmath NArray.scomplex(6).indgen.div!(2)-2 - Complex(0,1)
69 -+testmath NArray.complex(6).indgen!/5-0.5# - Complex(0,0.3)
70 -diff --git a/test/testpow.rb b/test/testpow.rb
71 -index 17f81d1..e7360e8 100644
72 ---- a/test/testpow.rb
73 -+++ b/test/testpow.rb
74 -@@ -7,8 +7,8 @@ def test a
75 - p a**[[-3],[0],[7]]
76 - puts 'a**[[-3.0],[0],[7.0]] = '
77 - p a**[[-3.0],[0],[7.0]]
78 -- puts 'a**(1+0.im) = '
79 -- p a**(1+0.im)
80 -+ puts 'a**Complex(1,0) = '
81 -+ p a**Complex(1,0)
82 - puts 'a**1.0 = '
83 - p a**1.0
84 - puts
85 ---
86 -1.8.1.6
87 -