Lines Matching refs:aFract3
58 Fraction aFract3( 0x7AAAAAAA, 0x35555555 ); in TEST_F() local
59 ASSERT_TRUE(aFract3.GetNumerator() == 0x7AAAAAAA && in TEST_F()
60 aFract3.GetDenominator() == 0x35555555) << "Fraction #3 cancellation wrong"; in TEST_F()
61 aFract3.ReduceInaccurate(30); in TEST_F()
62 ASSERT_TRUE(aFract3.GetNumerator() == 0x7AAAAAAA && in TEST_F()
63 …aFract3.GetDenominator() == 0x35555555) << "Fraction #3 ReduceInaccurate errorneously cut precisio… in TEST_F()
65 aFract3.ReduceInaccurate(29); in TEST_F()
66 ASSERT_TRUE(aFract3.GetNumerator() == 0x3D555555 && in TEST_F()
67 aFract3.GetDenominator() == 0x1AAAAAAA) << "Fraction #3 reduce to 29 bits failed"; in TEST_F()
69 aFract3.ReduceInaccurate(9); in TEST_F()
70 ASSERT_TRUE(aFract3.GetNumerator() == 0x0147 && in TEST_F()
71 aFract3.GetDenominator() == 0x008E) << "Fraction #3 reduce to 9 bits failed"; in TEST_F()
73 aFract3.ReduceInaccurate(1); in TEST_F()
74 ASSERT_TRUE(aFract3.GetNumerator() == 2 && in TEST_F()
75 aFract3.GetDenominator() == 1) << "Fraction #3 reduce to 1 bit failed"; in TEST_F()
77 aFract3.ReduceInaccurate(0); in TEST_F()
78 ASSERT_TRUE(aFract3.GetNumerator() == 2 && in TEST_F()
79 aFract3.GetDenominator() == 1) << "Fraction #3 reduce to 0 bits failed"; in TEST_F()