Sha256: 34740eb12f4e1699749194ab14fe330ed10dd0d2dafa8aa67942f5a4620f4dbc

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require "shogi_koma/painter"
require "cairo"

class PainterTest < Test::Unit::TestCase
  def setup
    @painter = ShogiKoma::Painter.new
  end

  def test_draw
    assert_nothing_raised do
      Cairo::ImageSurface.new(:argb32, 100, 100) do |surface|
        Cairo::Context.new(surface) do |context|
          @painter.draw(context, "A")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shogi_koma-0.0.1 test/test-painter.rb