|
|
@@ -145,7 +145,7 @@ def iset(string): |
|
|
|
return iset |
|
|
|
|
|
|
|
def test_intervalset_iset(): |
|
|
|
"""test basic iset construction""" |
|
|
|
"""Test basic iset construction""" |
|
|
|
assert(iset(" [----] ") == |
|
|
|
iset(" [-|--] ")) |
|
|
|
|
|
|
@@ -154,7 +154,7 @@ def test_intervalset_iset(): |
|
|
|
iset("[|] [-----]")) |
|
|
|
|
|
|
|
def test_intervalset_intsersect(): |
|
|
|
"""test intersection (&)""" |
|
|
|
"""Test intersection (&)""" |
|
|
|
assert_raises(TypeError, iset("[--]").__and__, 1234) |
|
|
|
|
|
|
|
assert(iset("[---------]") & |
|
|
@@ -184,22 +184,3 @@ def test_intervalset_intsersect(): |
|
|
|
assert(iset(" [----][--]") & |
|
|
|
iset("[-] [--] []") == |
|
|
|
iset(" [] [-] []")) |
|
|
|
|
|
|
|
# start-other.start start-other.end end-other.start end-other.end |
|
|
|
# --- < < < < n |
|
|
|
# --- |
|
|
|
# |
|
|
|
# --- < < > < |
|
|
|
# --- |
|
|
|
# |
|
|
|
# - > < > < |
|
|
|
# --- |
|
|
|
# |
|
|
|
# ------- < < > > |
|
|
|
# --- |
|
|
|
# |
|
|
|
# --- > < > > |
|
|
|
# --- |
|
|
|
# |
|
|
|
# --- > > > > n |
|
|
|
# --- |