Sha256: c368e0de5ec6a10e74f684e8d40b6c637a853d7bd52b3dcd2c04519b24cf973b

Contents?: true

Size: 539 Bytes

Versions: 6

Compression:

Stored size: 539 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Parsing::ArticulationParser do
  parser = Parsing::ArticulationParser.new
  
  {
    '=' => SLUR,
    '|' => LEGATO,
    '_' => TENUTO,
    '%' => PORTATO,
    '.' => STACCATO,
    "'" => STACCATISSIMO
  }.each do |str,art|
    res = parser.parse(str)
    it "should parse '#{str}'" do
      res.should_not be nil
    end
    
    it 'should return a node to responds to :to_articulation correctly' do
      res.to_articulation.should eq art
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
music-transcription-0.21.0 spec/parsing/articulation_parsing_spec.rb
music-transcription-0.20.0 spec/parsing/articulation_parsing_spec.rb
music-transcription-0.19.0 spec/parsing/articulation_parsing_spec.rb
music-transcription-0.17.1 spec/parsing/articulation_parsing_spec.rb
music-transcription-0.17.0 spec/parsing/articulation_parsing_spec.rb
music-transcription-0.16.0 spec/parsing/articulation_parsing_spec.rb