#8215: The empty word is a factor of a word
-------------------------------+--------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.3.3
Component: combinatorics | Keywords: empty word
Author: Sebastien Labbe | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by newvalueoldvalue):
* status: new => needs_review
* author: => Sebastien Labbe
Old description:
> The following three results should be True.
>
> {{{
> sage: Word().is_factor(Word())
> False
> sage: Word().is_factor(Word('abad'))
> False
> sage: Word().is_factor(Word([0,1,2]))
> False
> sage: Word('').is_factor(Word('abad'))
> False
> sage: Word([]).is_factor(Word([0,1,2]))
> False
> }}}
New description:
The following results should be True.
{{{
sage: Word().is_factor(Word())
False
sage: Word().is_factor(Word('abad'))
False
sage: Word().is_factor(Word([0,1,2]))
False
sage: Word('').is_factor(Word('abad'))
False
sage: Word([]).is_factor(Word([0,1,2]))
False
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8215#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.