Sha256: 9f95f1c03a894b8766ca68704a8352ce0f6bdc248e00473c333353bd43684836

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

# -*- coding: utf-8 -*-


require_relative 'helper'


class TestTexture < Test::Unit::TestCase

  W = 32
  H = 16

  def tex (w = W, h = H)
    Rays::Texture.new w, h
  end

  def test_initialize ()
    assert_equal W, tex.width
    assert_equal H, tex.height
  end

  def test_to_bitmap ()
    assert_equal Rays::Bitmap, tex.to_bitmap.class
    assert_equal W, tex.to_bitmap.width
    assert_equal H, tex.to_bitmap.height
  end

end# TestTexture

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rays-0.1.12 test/test_texture.rb
rays-0.1.11 test/test_texture.rb
rays-0.1.10 test/test_texture.rb
rays-0.1.9 test/test_texture.rb
rays-0.1.8 test/test_texture.rb
rays-0.1.7 test/test_texture.rb