Sha256: e58f14ccced3aa4bef1cfa307898a864be6e979da5f2ab2c1fb4d76e02d1fcb1

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

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

describe Parsing::PitchParser do
  before :all do
    @parser = Parsing::PitchParser.new
  end
  
  it 'should parse "C4"' do
    @parser.parse("C4").should_not be nil
  end
  
  it 'should parse "C#9"' do
    @parser.parse("C#9").should_not be nil
  end
  
  it 'should parse "Ab0"' do
    @parser.parse("Ab0").should_not be nil
  end
  
  it 'should parse "G#2"' do
    @parser.parse("G#2").should_not be nil
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
music-transcription-0.15.0 spec/parsing/pitch_parsing_spec.rb
music-transcription-0.14.0 spec/parsing/pitch_parsing_spec.rb
music-transcription-0.13.0 spec/parsing/pitch_parsing_spec.rb
music-transcription-0.11.0 spec/parsing/pitch_parsing_spec.rb
music-transcription-0.10.0 spec/parsing/pitch_parsing_spec.rb