Sha256: 97c910723b9eb5fdea3d8063e20959b7f7ede493cc5fed89895793dca8d83b01

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require 'test/unit'
require_relative '../lib/minigl'
include AGL

class ResTest < Test::Unit::TestCase
	def setup
		@window = Gosu::Window.new 800, 600, false
		Game.initialize @window
    Res.prefix = File.expand_path(File.dirname(__FILE__))
	end

	def test_tileset
		t1 = Res.tileset :tileset1
		assert_equal 9, t1.length
		assert_equal 32, t1[0].width
		assert_equal 32, t1[0].width
		Res.clear
		t1 = Res.tileset :tileset1, 48, 48
		assert_equal 4, t1.length
		assert_equal 48, t1[0].width
		assert_equal 48, t1[0].width
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minigl-1.3.6 test/res_tests.rb
minigl-1.3.5 test/res_tests.rb
minigl-1.3.4 test/res_tests.rb