Sha256: 9948ab5bd30134b9d8484912fa560fd6f37859d4244cb939d33152512cc3c9e2

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

require 'helper'

class TestColor < Test::Unit::TestCase

  def test_colorize
    assert_equal "\e[35mBoom!\e[0m",
      Boom::Color.colorize("Boom!", :magenta)
  end

  def test_magenta
    assert_equal "\e[35mMagenta!\e[0m",
      Boom::Color.magenta("Magenta!")
  end

  def test_red
    assert_equal "\e[31mRed!\e[0m",
      Boom::Color.red("Red!")
  end

  def test_yellow
    assert_equal "\e[33mYellow!\e[0m",
      Boom::Color.yellow("Yellow!")
  end

  def test_cyan
    assert_equal "\e[36mCyan!\e[0m",
      Boom::Color.cyan("Cyan!")
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
boom-0.2.4 test/test_color.rb
kaboom-0.3.3 test/test_color.rb
kaboom-0.3.2 test/test_color.rb
kaboom-0.3.1 test/test_color.rb