Sha256: 1475f81f00150556f892bdf96656d019c05903426ef2855154457481299f5ba6

Contents?: true

Size: 413 Bytes

Versions: 16

Compression:

Stored size: 413 Bytes

Contents

require 'facets/string/snakecase.rb'
require 'test/unit'

class TestStringCase < Test::Unit::TestCase

  def test_snakecase
    assert_equal( 'my_module/my_class',   'MyModule::MyClass'.snakecase )
    assert_equal( 'uri',                  'URI'.snakecase )
    assert_equal( '/my_class',            '::MyClass'.snakecase )
    assert_equal( '/my_module/my_class/', '/my_module/my_class/'.snakecase )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_snakecase.rb
facets-2.8.3 test/core/string/test_snakecase.rb
facets-2.8.2 test/core/string/test_snakecase.rb
facets-2.8.1 test/core/string/test_snakecase.rb
facets-2.8.0 test/core/string/test_snakecase.rb
facets-2.7.0 test/core/string/test_snakecase.rb
facets-2.6.0 test/core/string/test_snakecase.rb
facets-2.4.0 test/string/test_snakecase.rb
facets-2.4.1 test/string/test_snakecase.rb
facets-2.4.2 test/core/string/test_snakecase.rb
facets-2.4.3 test/core/string/test_snakecase.rb
facets-2.4.4 test/core/string/test_snakecase.rb
facets-2.5.1 test/core/string/test_snakecase.rb
facets-2.5.0 test/core/string/test_snakecase.rb
facets-2.4.5 test/core/string/test_snakecase.rb
facets-2.5.2 test/core/string/test_snakecase.rb