it does not help:
indeed, I do not see how e.g. the following:

--- a/sage/groups/class_function.py     Wed Jan 20 15:09:32 2010 -0800
+++ b/sage/groups/class_function.py     Tue Jan 26 09:10:38 2010 +1100
@@ -284,7 +284,7 @@
             sage: S5 = SymmetricGroup(5)
             sage: irr = S5.irreducible_characters()
             sage: [x.degree() for x in irr]
-            [1, 4, 5, 6, 5, 4, 1]
+            [1, 1, 4, 4, 5, 5, 6]
         """
         return Integer(self._gap_classfunction.DegreeOfCharacter())

amounts to a fix; the thing is that you need to sort [x.degree() for x
in irr]
(e.g. just sort([x.degree() for x in irr])) before comparing it with
[1, 1, 4, 4, 5, 5, 6]

(I do not know how to write such a test in Sage, though...)

On Jan 26, 6:24 am, Alex Ghitza <aghi...@gmail.com> wrote:
> On Mon, 25 Jan 2010 10:10:36 -0800 (PST), Dima Pasechnik <dimp...@gmail.com> 
> wrote:
> > sage -t -optional devel/sage/sage/groups
>
> > gives
> > The following tests failed:
> >    sage -t -long "devel/sage/sage/groups/class_function.py"
> >    sage -t -long "devel/sage/sage/groups/abelian_gps/abelian_group.py"
> >    sage -t -long "devel/sage/sage/groups/abelian_gps/
> > abelian_group_element.py"
>
> > the rest look OK.
>
> > The 1st error actually looks like a bug in the test:
>
> > **********************************************************************
> > File "/usr/local/src/sage/sage-4.3.1/devel/sage/sage/groups/
> > class_function.py", line 356:
> >     sage: [x.values() for x in G.irreducible_characters()]
> > Expected:
> >     [[1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, -1, -1, -1], [2, -1, 2,
> > -1, 2, 0, 0, 0], [2, 1, -2, -1, 0, -zeta8^3 - zeta8, zeta8^3 + zeta8,
> > 0], [2, 1, -2, -1, 0, zeta8^3 + zeta8, -zeta8^3 - zeta8, 0], [3, 0, 3,
> > 0, -1, -1, -1, 1], [3, 0, 3, 0, -1, 1, 1, -1], [4, -1, -4, 1, 0, 0, 0,
> > 0]]
> > Got:
> >     [[1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, -1, -1, -1], [2, -1, 2,
> > -1, 2, 0, 0, 0], [2, 1, -2, -1, 0, -zeta8^3 - zeta8, zeta8^3 + zeta8,
> > 0], [2, 1, -2, -1, 0, zeta8^3 + zeta8, -zeta8^3 - zeta8, 0], [3, 0, 3,
> > 0, -1, 1, 1, -1], [3, 0, 3, 0, -1, -1, -1, 1], [4, -1, -4, 1, 0, 0, 0,
> > 0]]
> > **********************************************************************
> > 1 items had failures:
> >    1 of   4 in __main__.example_20
> > ***Test Failed*** 1 failures.
>
> > So 6th and 7th irreducible characters got swapped. But that's normal,
> > I don't think the order of irreducible characters is anyhow fixed
> > by GAP. So one just has to compare sorted lists.
>
> You are completely right, and it's a bug in Sage.
> G.irreducible_characters() should take the list of irreducible
> characters returned by GAP and sort it first.
>
> Similarly, the output to word_problem() should be sorted.
>
> I've fixed this and put a patch at
>
> http://trac.sagemath.org/sage_trac/ticket/8065
>
> I'm sure there are other functions that need the same fix, but for now I
> think the priority should be to get GAP upgraded to the latest version.
>
> Dima, you can apply the patch from ticket 8065 and try running tests
> again.  At least the failures you reported in this email should have
> disappeared.
>
> Best,
> Alex
>
> --
> Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
> -- Australia --http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to