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.8 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.7 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.6 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.5 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.4 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.3 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.2 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.1 test/rbbt/util/test_colorize.rb
rbbt-util-5.21.0 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.26 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.25 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.24 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.23 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.22 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.21 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.20 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.18 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.17 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.16 test/rbbt/util/test_colorize.rb
rbbt-util-5.20.15 test/rbbt/util/test_colorize.rb