1- from processing import LabeledSection , identify_hammer_blast , identify_traditional_blast
1+ from processing import LabeledSection , identify_blastbeats
22
33
44def test_identify_blasts_1 ():
@@ -15,7 +15,7 @@ def test_identify_blasts_1():
1515 LabeledSection (10 , 11 , False , False ),
1616 ]
1717 expected = [(2 , 10 )]
18- actual = identify_hammer_blast (input )
18+ actual = identify_blastbeats (input )
1919
2020 assert actual == expected
2121
@@ -32,25 +32,6 @@ def test_identify_blasts_2():
3232 LabeledSection (8 , 9 , True , True ),
3333 ]
3434 expected = []
35- actual = identify_hammer_blast (input )
36-
37- assert actual == expected
38-
39-
40- def test_traditional_blast ():
41- input : list [LabeledSection ] = [
42- LabeledSection (1 , 2 , bass_drum_present = False , snare_present = False ),
43- LabeledSection (2 , 3 , bass_drum_present = True , snare_present = False ),
44- LabeledSection (3 , 4 , bass_drum_present = False , snare_present = True ),
45- LabeledSection (4 , 5 , bass_drum_present = True , snare_present = False ),
46- LabeledSection (5 , 6 , bass_drum_present = False , snare_present = True ),
47- LabeledSection (6 , 7 , bass_drum_present = False , snare_present = False ),
48- LabeledSection (7 , 8 , bass_drum_present = False , snare_present = False ),
49- LabeledSection (8 , 9 , bass_drum_present = False , snare_present = False ),
50- ]
51-
52- expected = [(2 , 6 )]
53-
54- actual = identify_traditional_blast (input )
35+ actual = identify_blastbeats (input )
5536
5637 assert actual == expected
0 commit comments