From: <fwi...@us...> - 2008-10-16 18:56:14
|
Revision: 5438 http://jython.svn.sourceforge.net/jython/?rev=5438&view=rev Author: fwierzbicki Date: 2008-10-16 18:56:04 +0000 (Thu, 16 Oct 2008) Log Message: ----------- moved test130 to test_cmp_jy. Modified Paths: -------------- trunk/jython/Lib/test/test_cmp_jy.py Removed Paths: ------------- trunk/jython/bugtests/test130.py Modified: trunk/jython/Lib/test/test_cmp_jy.py =================================================================== --- trunk/jython/Lib/test/test_cmp_jy.py 2008-10-16 17:51:59 UTC (rev 5437) +++ trunk/jython/Lib/test/test_cmp_jy.py 2008-10-16 18:56:04 UTC (rev 5438) @@ -21,8 +21,23 @@ self.assertNotEqual(Test(0), 'foo') self.assertTrue('foo' in [Test(12), 'foo']) +class IntStrCmp(unittest.TestCase): + def testIntStrCompares(self): + assert not (-1 > 'a') + assert (-1 < 'a') + assert not (4 > 'a') + assert (4 < 'a') + assert not (-2 > 'a') + assert (-2 < 'a') + assert not (-1 == 'a') + + def test_main(): - test_support.run_unittest(UnicodeDerivedCmp, LongDerivedCmp) + test_support.run_unittest( + UnicodeDerivedCmp, + LongDerivedCmp, + IntStrCmp, + ) if __name__ == '__main__': test_main() Deleted: trunk/jython/bugtests/test130.py =================================================================== --- trunk/jython/bugtests/test130.py 2008-10-16 17:51:59 UTC (rev 5437) +++ trunk/jython/bugtests/test130.py 2008-10-16 18:56:04 UTC (rev 5438) @@ -1,22 +0,0 @@ -""" -Comparing ints and strings -""" - -import support - -if -1 > 'a': - raise support.TestError("-1 > 'a'") -if not -1 < 'a': - raise support.TestError("-1 < 'a'") -if 4 > 'a': - raise support.TestError("4 > 'a'") -if not 4 < 'a': - raise support.TestError("4 < 'a'") -if -2 > 'a': - raise support.TestError("-2 > 'a'") -if not -2 < 'a': - raise support.TestError("-2 < 'a'") -if -1 == 'a': - raise support.TestError("-1 == 'a'") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |