Sha256: 25adb87b5d4477073f91376d16c21f9710b78635ec906af9ea96271693fd26d6

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

require File.join(File.dirname(__FILE__), 'preamble')

class FigletTest < Test::Unit::TestCase

  def test_hello_world
    font = Text::Figlet::Font.new(File.rel('data', 'big.flf'))
    figlet = Text::Figlet::Typesetter.new(font)
    assert_equal File.read(File.rel('data', 'big.txt')), figlet['Hello World']
  end

  def test_no_smushing
    font = Text::Figlet::Font.new(File.rel('data', 'chunky.flf'))
    figlet = Text::Figlet::Typesetter.new(font, :smush => false)
    assert_equal File.read(File.rel('data', 'chunky.txt')), figlet['Chunky Bacon']
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
text-0.1.13 test/test_figlet.rb
Text-1.1.2 test/test_figlet.rb
Text-1.0.0 test/figlet_test.rb
Text-1.1.0 test/figlet_test.rb
Text-1.1.1 test/test_figlet.rb