mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-gap/guava: add Sort() calls to tests to fix random failures
Sent upstream, maybe there is a better fix but this will at least prevent the test suite from failing. Closes: https://bugs.gentoo.org/951553 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
26
dev-gap/guava/files/guava-3.20-testfix.patch
Normal file
26
dev-gap/guava/files/guava-3.20-testfix.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
https://github.com/gap-packages/guava/issues/110
|
||||
|
||||
diff --git a/tst/guava.tst b/tst/guava.tst
|
||||
index c6b356b..fc70f65 100644
|
||||
--- a/tst/guava.tst
|
||||
+++ b/tst/guava.tst
|
||||
@@ -100,11 +100,14 @@ gap> Print(" Codes\n");
|
||||
gap> C:=RandomLinearCode(20,10,GF(4));
|
||||
a [20,10,?] randomly generated code over GF(4)
|
||||
gap> c:=Random(C);;
|
||||
-gap> NamesOfComponents(C);
|
||||
-[ "Representative", "ZeroImmutable", "name", "LeftActingDomain", "Dimension",
|
||||
- "GeneratorsOfLeftOperatorAdditiveGroup", "Basis", "NiceFreeLeftModule",
|
||||
- "WordLength", "GeneratorMat" ]
|
||||
-gap> NamesOfComponents(c);
|
||||
+gap> nC:=NamesOfComponents(C);;
|
||||
+gap> Sort(nC); nC;
|
||||
+[ "Basis", "Dimension", "GeneratorMat",
|
||||
+ "GeneratorsOfLeftOperatorAdditiveGroup", "LeftActingDomain",
|
||||
+ "NiceFreeLeftModule", "Representative", "WordLength", "ZeroImmutable",
|
||||
+ "name" ]
|
||||
+gap> nc:=NamesOfComponents(c);;
|
||||
+gap> Sort(nc); nc;
|
||||
[ "VectorCodeword", "WordLength", "treatAsPoly" ]
|
||||
gap> c!.VectorCodeword;
|
||||
< immutable compressed vector length 20 over GF(4) >
|
||||
@@ -15,6 +15,7 @@ DEPEND="sci-mathematics/gap"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.15-makefile.patch"
|
||||
"${FILESDIR}/${P}-testfix.patch"
|
||||
)
|
||||
|
||||
GAP_PKG_EXTRA_INSTALL=( tbl )
|
||||
|
||||
Reference in New Issue
Block a user