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

Version Path
wlang-3.0.1 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-3.0.0 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.3.1 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.3.0 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.2.4 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.2.3 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.2.2 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.2.1 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.2.0 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.1.2 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.1.1 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.1.0 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.0.1 spec/unit/dialect/test_tag_dispatching_name.rb
wlang-2.0.0 spec/unit/dialect/test_tag_dispatching_name.rb