Update of /cvsroot/fxruby/FXRuby/tests
In directory usw-pr-cvs1:/tmp/cvs-serv19492
Modified Files:
Tag: release10
TC_FXViewport.rb
Log Message:
Corrected checks on FXViewport#w and FXViewport#h; we expect them to be
of type Integer (either Bignum or Fixnum). Was failing if it was not a
Fixnum.
Index: TC_FXViewport.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/tests/TC_FXViewport.rb,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** TC_FXViewport.rb 26 Mar 2002 21:35:20 -0000 1.2
--- TC_FXViewport.rb 24 Apr 2002 15:58:41 -0000 1.2.2.1
***************
*** 9,17 ****
@viewport = FXViewport.new
end
def testAttributes
assert_not_nil(@viewport.w)
! assert_kind_of(Fixnum, @viewport.w)
assert_not_nil(@viewport.h)
! assert_kind_of(Fixnum, @viewport.h)
assert_not_nil(@viewport.left)
assert_kind_of(Float, @viewport.left)
--- 9,18 ----
@viewport = FXViewport.new
end
+
def testAttributes
assert_not_nil(@viewport.w)
! assert_kind_of(Integer, @viewport.w)
assert_not_nil(@viewport.h)
! assert_kind_of(Integer, @viewport.h)
assert_not_nil(@viewport.left)
assert_kind_of(Float, @viewport.left)
|