Searched refs:createIllegalRational (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | RationalTest.java | 346 Rational badZero = createIllegalRational(0, 100); // [0, 100] , should be [0, 1] in testSerialize() 354 Rational badPosInfinity = createIllegalRational(100, 0); // [100, 0] , should be [1, 0] in testSerialize() 363 createIllegalRational(-100, 0); // [-100, 0] , should be [-1, 0] in testSerialize() 371 Rational badReduced = createIllegalRational(2, 4); // [2,4] , should be [1, 2] in testSerialize() 379 Rational badReducedNeg = createIllegalRational(-2, 4); // [-2, 4] should be [-1, 2] in testSerialize() 513 private static Rational createIllegalRational(int numerator, int denominator) { in createIllegalRational() method in RationalTest
|