Sha256: f11b7d3d7667eb6e2c10f5203bb7a4272f0e6edc69145489e3fb8f4791b22a67
Contents?: true
Size: 521 Bytes
Versions: 14
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' module WLang describe Dialect, 'tag_dispatching_name' do def tag_dispatching_name(symbol) Dialect.tag_dispatching_name(symbol) end it "works with a single char" do tag_dispatching_name("$").should eq(:_tag_36) end it "works with a multiple chars" do tag_dispatching_name("!$").should eq(:_tag_33_36) end it "works with an array" do tag_dispatching_name(['!', '$']).should eq(:_tag_33_36) end end # describe Dialect end # module WLang
Version data entries
14 entries across 14 versions & 1 rubygems