Revision: 5430
http://jython.svn.sourceforge.net/jython/?rev=5430&view=rev
Author: fwierzbicki
Date: 2008-10-16 14:36:02 +0000 (Thu, 16 Oct 2008)
Log Message:
-----------
basic test of int subclasses which is well covered by current tests.
Removed Paths:
-------------
trunk/jython/bugtests/test118.py
Deleted: trunk/jython/bugtests/test118.py
===================================================================
--- trunk/jython/bugtests/test118.py 2008-10-16 14:34:25 UTC (rev 5429)
+++ trunk/jython/bugtests/test118.py 2008-10-16 14:36:02 UTC (rev 5430)
@@ -1,19 +0,0 @@
-"""
-Subclassing PyInteger
-"""
-
-import support
-
-IntegerType = type(1)
-class SpecialInt (IntegerType):
- def __init__(self, n): IntegerType.__init__(self, n)
- def double(self): return self*2
-
-si = SpecialInt(12)
-
-#print str(si)
-support.compare(si, '12')
-support.compare(si + 1, '13')
-support.compare(si + si, '24')
-support.compare(3 + si, '15')
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|