Sha256: c6daf4b4833706729ab4a7410afcc7995ef1678ae31afe25567d6eb41c5b4f1e

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

require 'spec_helper'

describe GuitarProHelper do
  describe '.digit_to_note' do
    it 'converts digit to correct note' do
      digits = [0, 1, 2]
      notes = ['C0', 'C#0', 'D0']
      digits.count.times { |i| (GuitarProHelper.digit_to_note(digits.fetch(i))).should == notes.fetch(i) }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guitar_pro_parser-0.0.4 spec/lib/guitar_pro_parser/guitar_pro_helper_spec.rb
guitar_pro_parser-0.0.3 spec/lib/guitar_pro_parser/guitar_pro_helper_spec.rb
guitar_pro_parser-0.0.2 spec/lib/guitar_pro_parser/guitar_pro_helper_spec.rb
guitar_pro_parser-0.0.1 spec/lib/guitar_pro_parser/guitar_pro_helper_spec.rb