[Fxruby-commits] CVS: FXRuby/tests TC_FXButton.rb,1.1,1.2 TC_FXFont.rb,1.3,1.4 TC_FXHMat.rb,1.1,1.2
Status: Inactive
Brought to you by:
lyle
|
From: Lyle J. <ly...@us...> - 2002-03-26 21:35:25
|
Update of /cvsroot/fxruby/FXRuby/tests
In directory usw-pr-cvs1:/tmp/cvs-serv30076
Modified Files:
TC_FXButton.rb TC_FXFont.rb TC_FXHMat.rb TC_FXHVec.rb
TC_FXLight.rb TC_FXMaterial.rb TC_FXPoint.rb TC_FXRange.rb
TC_FXRectangle.rb TC_FXSize.rb TC_FXViewport.rb
Log Message:
Test::Unit provides an "auto-run" feature (for lack of a better name)
for running the individual test cases, so the blocks I had like:
if __FILE__ == $0
# run this case
end
are not necessary.
Index: TC_FXButton.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXButton.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TC_FXButton.rb 20 Mar 2002 22:00:39 -0000 1.1
--- TC_FXButton.rb 26 Mar 2002 21:35:20 -0000 1.2
***************
*** 76,82 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXButton)
- end
--- 76,77 ----
Index: TC_FXFont.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXFont.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TC_FXFont.rb 25 Feb 2002 17:29:28 -0000 1.3
--- TC_FXFont.rb 26 Mar 2002 21:35:20 -0000 1.4
***************
*** 52,58 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/testrunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXFont)
- end
--- 52,53 ----
Index: TC_FXHMat.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXHMat.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TC_FXHMat.rb 13 Mar 2002 22:05:06 -0000 1.1
--- TC_FXHMat.rb 26 Mar 2002 21:35:20 -0000 1.2
***************
*** 41,47 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXHMat)
- end
--- 41,42 ----
Index: TC_FXHVec.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXHVec.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TC_FXHVec.rb 5 Mar 2002 20:41:13 -0000 1.3
--- TC_FXHVec.rb 26 Mar 2002 21:35:20 -0000 1.4
***************
*** 84,90 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXHVec)
- end
--- 84,85 ----
Index: TC_FXLight.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXLight.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TC_FXLight.rb 20 Mar 2002 22:00:39 -0000 1.1
--- TC_FXLight.rb 26 Mar 2002 21:35:20 -0000 1.2
***************
*** 32,38 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXLight)
- end
--- 32,33 ----
Index: TC_FXMaterial.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXMaterial.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TC_FXMaterial.rb 20 Mar 2002 22:00:39 -0000 1.1
--- TC_FXMaterial.rb 26 Mar 2002 21:35:20 -0000 1.2
***************
*** 22,28 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXMaterial)
- end
--- 22,23 ----
Index: TC_FXPoint.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXPoint.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TC_FXPoint.rb 25 Feb 2002 15:46:50 -0000 1.2
--- TC_FXPoint.rb 26 Mar 2002 21:35:20 -0000 1.3
***************
*** 56,62 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXPoint)
- end
--- 56,57 ----
Index: TC_FXRange.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXRange.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TC_FXRange.rb 25 Feb 2002 15:46:50 -0000 1.2
--- TC_FXRange.rb 26 Mar 2002 21:35:20 -0000 1.3
***************
*** 52,58 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/testrunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXRange)
- end
--- 52,53 ----
Index: TC_FXRectangle.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXRectangle.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TC_FXRectangle.rb 25 Feb 2002 15:46:50 -0000 1.2
--- TC_FXRectangle.rb 26 Mar 2002 21:35:20 -0000 1.3
***************
*** 80,86 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/testrunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXRectangle)
- end
--- 80,81 ----
Index: TC_FXSize.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXSize.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TC_FXSize.rb 25 Feb 2002 15:46:50 -0000 1.2
--- TC_FXSize.rb 26 Mar 2002 21:35:20 -0000 1.3
***************
*** 53,59 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/testrunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXSize)
- end
--- 53,54 ----
Index: TC_FXViewport.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXViewport.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TC_FXViewport.rb 20 Mar 2002 22:00:39 -0000 1.1
--- TC_FXViewport.rb 26 Mar 2002 21:35:20 -0000 1.2
***************
*** 28,34 ****
end
end
-
- if __FILE__ == $0
- require 'test/unit/ui/console/TestRunner'
- Test::Unit::UI::Console::TestRunner.run(TC_FXViewport)
- end
--- 28,29 ----
|