예제 #1
0
def test_parse_item_null():
    item = humdrum.parse_item(".", score.Score())
    assert isinstance(item, score.NullToken)
예제 #2
0
def test_parse_item_comment():
    item = humdrum.parse_item("! foo", score.Score())
    assert isinstance(item, score.Comment)
예제 #3
0
def test_parse_item_null_interpretation():
    item = humdrum.parse_item("*", score.Score())
    assert isinstance(item, score.NullInterpretation)
예제 #4
0
def test_parse_item_tandem_spine_names_from_instrument():
    sco = score.Score()
    humdrum.parse_item("*Iviolin", sco)
    assert sco.spine_names == ["violin"]
예제 #5
0
def test_parse_item_tandem():
    item = humdrum.parse_item("*ClefF4", score.Score())
    assert isinstance(item, score.Tandem)
예제 #6
0
def test_parse_item_einterp():
    item = humdrum.parse_item("**kern", score.Score())
    assert isinstance(item, score.Exclusive)
예제 #7
0
def test_parse_item_bar():
    item = humdrum.parse_item("=2:||:", score.Score())
    assert isinstance(item, score.Bar)
예제 #8
0
def test_parse_item_list():
    item = humdrum.parse_item(["**kern", "**kern"], score.Score())
    assert [x.name for x in item] == ["kern", "kern"]