Sha256: ce9f7eb8675bad2a28a53932bf4fadd92a46b13b019548ddc5407e0307fc704f

Contents?: true

Size: 397 Bytes

Versions: 19

Compression:

Stored size: 397 Bytes

Contents

# Test for lib/facets/string/align.rb

require 'facets/string/align.rb'

require 'test/unit'

class TestStringAlign < Test::Unit::TestCase

  def test_align_right
    assert_equal( "      xxx", "xxx".align_right(9) )
  end

  def test_align_left
    assert_equal( "xxx      ", "xxx".align_left(9) )
  end

  def test_align_center
    assert_equal( "   xxx   ", "xxx".align_center(9) )
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

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