Sha256: f0e814fd8b1a7cb3576df3098c05046925c2adde0cc5264972f5529d096c7f99
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Parsing::LinkNode do parser = Parsing::LinkParser.new { '=C4' => Link::Slur.new(C4), '/Db2' => Link::Portamento.new(Db2), '~C#2' => Link::Glissando.new(Db2), '|Db2' => Link::Legato.new(Db2), }.each do |str,tgt| res = parser.parse(str) context str do it 'should parse as LinkNode' do res.should be_a Parsing::LinkNode end describe '#to_pitch' do l = res.to_link it 'should produce a Link object' do l.should be_a Link end it 'should produce pitch matching input str' do l.should eq tgt end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems