spec/parsing/note_parsing_spec.rb in music-transcription-0.11.0 vs spec/parsing/note_parsing_spec.rb in music-transcription-0.13.0
- old
+ new
@@ -5,9 +5,12 @@
@parser = Parsing::NoteParser.new
end
valid_cases = {
'duration only' => ['1/4','/2','1','55/33'],
+ 'duration + accent' => ['1/4!','/2!'],
+ 'duration + articulation' => ['1/4.','/2%','2/3='],
+ 'duration + articulation + accent' => ['1/4.!','/2%!','2/3=!'],
'single pitch' => ['/4C2','5/3Db3','/33E#8'],
'multiple pitches' => ['/4C2,C3,c5','5/3Db3,Bb2,E5','/33E#8,F1,B9'],
'with articulation' => ['/4.C2',"5/3'Db3,Bb2,E5",'/33=F3','5-B2','/2_D3,F4'],
'with accent' => ['/4C2!','3/2Db3,Bb4!'],
'with links' => ['/2C2=','/2C2=D2','/4D4-E4,G4~A5'],