MCPcopy Create free account
hub / github.com/apache/impala / DoubleCompare

Function DoubleCompare

be/src/runtime/decimal-test.cc:932–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932int 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.
939TEST(DecimalTest, RandTesting) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected