Sha256: c74b2d49a6789243d1f8257e03359005fe66f69b1671771c961d4a19442ee5b0

Contents?: true

Size: 330 Bytes

Versions: 317

Compression:

Stored size: 330 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
require 'rbbt/util/colorize'
require 'test/unit'

class TestColorize < Test::Unit::TestCase
  def test_color_array
    a = (1..16).to_a

    assert_equal 16, Colorize.distinct(a).length
    assert_equal 16, Colorize.distinct(a).compact.uniq.length
  end
end

Version data entries

317 entries across 317 versions & 1 rubygems

Version Path
rbbt-util-5.21.76 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.75 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.74 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.73 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.72 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.71 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.70 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.69 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.68 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.67 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.66 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.64 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.63 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.62 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.61 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.60 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.59 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.58 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.57 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.56 test/rbbt/util/test_colorize.rb