Sha256: 58ba609550fcd05d0e0d9477ac20d389fb863657248c7dad1bdd7194a9e8e110

Contents?: true

Size: 443 Bytes

Versions: 22

Compression:

Stored size: 443 Bytes

Contents

require 'test/unit'
require 'bitclust/methodsignature'

class TestMethodSignature < Test::Unit::TestCase

  data("special var" => ["$_ -> String | nil", "--- $_ -> String | nil"],
       "backquote"   => ["`command` -> String", "--- `(command) -> String"])
  def test_friendlyname(data)
    friendly_string, method_signature = data
    assert_equal(friendly_string, BitClust::MethodSignature.parse(method_signature).friendly_string)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bitclust-core-1.3.0 test/test_methodsignature.rb
bitclust-core-1.2.6 test/test_methodsignature.rb
bitclust-core-1.2.5 test/test_methodsignature.rb
bitclust-core-1.2.4 test/test_methodsignature.rb
bitclust-core-1.2.3 test/test_methodsignature.rb
bitclust-core-1.2.2 test/test_methodsignature.rb
bitclust-core-1.2.1 test/test_methodsignature.rb
bitclust-core-1.2.0 test/test_methodsignature.rb
bitclust-core-1.1.1 test/test_methodsignature.rb
bitclust-core-1.1.0 test/test_methodsignature.rb
bitclust-core-1.0.0 test/test_methodsignature.rb
bitclust-core-0.9.6 test/test_methodsignature.rb
bitclust-core-0.9.5 test/test_methodsignature.rb
bitclust-core-0.9.4 test/test_methodsignature.rb
bitclust-core-0.9.3 test/test_methodsignature.rb
bitclust-core-0.9.2 test/test_methodsignature.rb
bitclust-core-0.9.1 test/test_methodsignature.rb
bitclust-core-0.9.0 test/test_methodsignature.rb
bitclust-core-0.8.0 test/test_methodsignature.rb
bitclust-core-0.7.0 test/test_methodsignature.rb