test/test_opengl_basic.rb in sgl-0.4.0 vs test/test_opengl_basic.rb in sgl-1.0.0

- old
+ new

@@ -1,22 +1,22 @@ -#!/usr/bin/env ruby -w -# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved. -# License: Ruby License - -require File.dirname(__FILE__) + '/test_helper.rb' - -class TestOpenGLBasic < Test::Unit::TestCase - def test_all - app = SGL::Application.new - app.set_setup { - app.window(100, 100) - app.runtime = 0.1 - } - @i = 0 - app.set_display { - app.line(0, 0, 100, @i*5) - @i += 2 - @i = 0 if 20 < @i - } - app.mainloop - end -end +#!/usr/bin/env ruby -w +# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved. +# License: Ruby License + +require File.dirname(__FILE__) + '/test_helper.rb' + +class TestOpenGLBasic < Test::Unit::TestCase + def test_all + app = SGL::Application.new + app.set_setup { + app.window(100, 100) + app.runtime = 0.1 + } + @i = 0 + app.set_display { + app.line(0, 0, 100, @i*5) + @i += 2 + @i = 0 if 20 < @i + } + app.mainloop + end +end