tests.test_rationals module

Test for rational conversions.

class tests.test_rationals.RationalsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Tests for rationals.

testExceptions()

Test exceptions.

testInverses()

Test that functions are inverses of each other.

testRounding()

Test rounding to int.

testRoundingConversion()

Test that converting and then rounding is the same as converting with rounding.

testRoundingExceptions()

Test exceptions.

testRoundingPrecise()

Test with predicted value.

Previous topic

tests.test_radix module

This Page