| 29 | namespace gandiva { |
| 30 | |
| 31 | TEST(TestArithmeticOps, TestIsDistinctFrom) { |
| 32 | EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, true, 1000, false), true); |
| 33 | EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, false, 1000, true), true); |
| 34 | EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, false, 1000, false), false); |
| 35 | EXPECT_EQ(is_distinct_from_timestamp_timestamp(1000, true, 1000, true), false); |
| 36 | |
| 37 | EXPECT_EQ(is_not_distinct_from_int32_int32(1000, true, 1000, false), false); |
| 38 | EXPECT_EQ(is_not_distinct_from_int32_int32(1000, false, 1000, true), false); |
| 39 | EXPECT_EQ(is_not_distinct_from_int32_int32(1000, false, 1000, false), true); |
| 40 | EXPECT_EQ(is_not_distinct_from_int32_int32(1000, true, 1000, true), true); |
| 41 | } |
| 42 | |
| 43 | TEST(TestArithmeticOps, TestPmod) { |
| 44 | gandiva::ExecutionContext context; |