Searched refs:roundtrip (Results 1 - 6 of 6) sorted by relevance

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_parser.py16 def roundtrip(self, f, s): member in class:RoundtripLegalSyntaxTestCase
22 self.fail("could not roundtrip %r: %s" % (s, why))
28 self.roundtrip(parser.expr, s)
40 self.roundtrip(parser.suite, s)
H A Dtest_complex.py525 roundtrip = complex(repr(z))
526 self.assertFloatsAreIdentical(z.real, roundtrip.real)
527 self.assertFloatsAreIdentical(z.imag, roundtrip.imag)
536 roundtrip = eval(repr(z))
539 0.0 + roundtrip.real)
541 0.0 + roundtrip.imag)
H A Dtest_float.py1368 def roundtrip(x): function in function:HexFloatTestCase.test_roundtrip
1372 self.identical(x, roundtrip(x))
1373 self.identical(-x, roundtrip(-x))
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_parser.py16 def roundtrip(self, f, s): member in class:RoundtripLegalSyntaxTestCase
22 self.fail("could not roundtrip %r: %s" % (s, why))
28 self.roundtrip(parser.expr, s)
40 self.roundtrip(parser.suite, s)
H A Dtest_complex.py525 roundtrip = complex(repr(z))
526 self.assertFloatsAreIdentical(z.real, roundtrip.real)
527 self.assertFloatsAreIdentical(z.imag, roundtrip.imag)
536 roundtrip = eval(repr(z))
539 0.0 + roundtrip.real)
541 0.0 + roundtrip.imag)
H A Dtest_float.py1368 def roundtrip(x): function in function:HexFloatTestCase.test_roundtrip
1372 self.identical(x, roundtrip(x))
1373 self.identical(-x, roundtrip(-x))

Completed in 269 milliseconds