Sha256: 74756cf2eaddb88f430a2d9d9373455f240c5112cd1d512660b32d149c13fb23
Contents?: true
Size: 582 Bytes
Versions: 3
Compression:
Stored size: 582 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Parsing::TempoParser do parser = Parsing::TempoParser.new [120,200,2.5,Rational(1,2),1.55e2].each do |val| [:bpm,:qnpm,:npm,:nps].each do |type| tempo = Tempo.const_get(type.upcase).new(val) str = tempo.to_s res = parser.parse(str) it "should parse #{str}" do res.should_not be nil end it 'should produce node that converts to back to original tempo via #to_tempo' do res.to_tempo.should eq(tempo) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
music-transcription-0.21.0 | spec/parsing/tempo_parsing_spec.rb |
music-transcription-0.20.0 | spec/parsing/tempo_parsing_spec.rb |
music-transcription-0.19.0 | spec/parsing/tempo_parsing_spec.rb |