| 930 | } |
| 931 | |
| 932 | int DoubleCompare(double x, double y) { |
| 933 | if (x < y) return -1; |
| 934 | if (x > y) return 1; |
| 935 | return 0; |
| 936 | } |
| 937 | |
| 938 | // Randomly test decimal operations, comparing the result with a double ground truth. |
| 939 | TEST(DecimalTest, RandTesting) { |