示例#1
0
def test_chords_to_tuples_2():
    line = "A   "
    expect = [("A", 0)]
    res = chords_to_tuples(line)
    print(expect, res)
    assert expect == res
示例#2
0
def test_chords_to_tuples_4():
    line = "Am   B"
    expect = [("Am", 0), ("B", 5)]
    res = chords_to_tuples(line)
    print(expect, res)
    assert expect == res
示例#3
0
def test_chords_to_tuples_5():
    line = "Am Bm Cm"
    expect = [("Am", 0), ("Bm", 3), ("Cm", 6)]
    res = chords_to_tuples(line)
    print(expect, res)
    assert expect == res
示例#4
0
def test_chords_to_tuples_3():
    line = "A   B"
    expect = [("A", 0), ("B", 4)]
    res = chords_to_tuples(line)
    print(expect, res)
    assert expect == res