#5067: linear_code -- four doctest failures in specture method='leon' exposed by
#4588
---------------------------+------------------------------------------------
Reporter: was | Owner: rlm
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.3
Component: coding theory | Keywords:
---------------------------+------------------------------------------------
When doing #4588 to fix some "doctests never got run" stuff, I discovered
exactly one case of some wrong non-optional doctests that weren't being
run.
They are in linear_code.py:
{{{
sage -t devel/sage/sage/coding/linear_code.py
**********************************************************************
File "/space/wstein/build/sage-3.3.alpha0/devel/sage-
main/sage/coding/linear_code.py", line 1984:
sage: C.spectrum(method="leon")
Expected:
[1, 0, 0, 7, 7, 0, 0, 1]
Got:
[0, 0, 0, 0, 0, 0, 0, 0]
**********************************************************************
File "/space/wstein/build/sage-3.3.alpha0/devel/sage-
main/sage/coding/linear_code.py", line 1988:
sage: C.spectrum() == C.spectrum(method="leon")
Expected:
True
#[1, 0, 0, 104, 468, 1404, 4056, 8424, 11934, 13442, 11232, 5616,
2080, 288]
Got:
False
**********************************************************************
File "/space/wstein/build/sage-3.3.alpha0/devel/sage-
main/sage/coding/linear_code.py", line 1993:
sage: C.spectrum() == C.spectrum(method="leon")
Expected:
True
#[1, 0, 0, 80, 120, 264, 160]
Got:
False
**********************************************************************
File "/space/wstein/build/sage-3.3.alpha0/devel/sage-
main/sage/coding/linear_code.py", line 1998:
sage: C.spectrum() == C.spectrum(method="leon")
Expected:
True
#[1, 0, 0, 336, 1680, 9072, 26544, 45744, 34272]
Got:
False
**********************************************************************
1 items had failures:
4 of 17 in __main__.example_44
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5067>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---