Skip to content

Problem with isorderedsubset #32

@satels

Description

@satels

In this case:

from orderedset import OrderedSet

oset = OrderedSet([1, 2, 3])
oset2 = OrderedSet([3, 2, 1])
oset3 = OrderedSet([1, 2, 3, 4])

oset.isorderedsubset(oset3)  # True

the function is work fine.

But in this:

from orderedset import OrderedSet

oset = OrderedSet([1, 2, 3])
oset2 = OrderedSet([3, 2, 1])
oset3 = OrderedSet([7, 0, 1, 2, 3, 4])

oset.isorderedsubset(oset3)  # False

the one has wrong result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions