Lines Matching refs:EXPECT_EQ
41 EXPECT_EQ(0, saturatedAddition(0, 0));
42 EXPECT_EQ(1, saturatedAddition(0, 1));
43 EXPECT_EQ(100, saturatedAddition(0, 100));
44 EXPECT_EQ(150, saturatedAddition(100, 50));
46 EXPECT_EQ(-1, saturatedAddition(0, -1));
47 EXPECT_EQ(0, saturatedAddition(1, -1));
48 EXPECT_EQ(50, saturatedAddition(100, -50));
49 EXPECT_EQ(-50, saturatedAddition(50, -100));
51 EXPECT_EQ(INT_MAX - 1, saturatedAddition(INT_MAX - 1, 0));
52 EXPECT_EQ(INT_MAX, saturatedAddition(INT_MAX - 1, 1));
53 EXPECT_EQ(INT_MAX, saturatedAddition(INT_MAX - 1, 2));
54 EXPECT_EQ(INT_MAX - 1, saturatedAddition(0, INT_MAX - 1));
55 EXPECT_EQ(INT_MAX, saturatedAddition(1, INT_MAX - 1));
56 EXPECT_EQ(INT_MAX, saturatedAddition(2, INT_MAX - 1));
57 EXPECT_EQ(INT_MAX, saturatedAddition(INT_MAX - 1, INT_MAX - 1));
58 EXPECT_EQ(INT_MAX, saturatedAddition(INT_MAX, INT_MAX));
60 EXPECT_EQ(INT_MIN, saturatedAddition(INT_MIN, 0));
61 EXPECT_EQ(INT_MIN + 1, saturatedAddition(INT_MIN + 1, 0));
62 EXPECT_EQ(INT_MIN + 2, saturatedAddition(INT_MIN + 1, 1));
63 EXPECT_EQ(INT_MIN + 3, saturatedAddition(INT_MIN + 1, 2));
64 EXPECT_EQ(INT_MIN, saturatedAddition(INT_MIN + 1, -1));
65 EXPECT_EQ(INT_MIN, saturatedAddition(INT_MIN + 1, -2));
66 EXPECT_EQ(INT_MIN + 1, saturatedAddition(0, INT_MIN + 1));
67 EXPECT_EQ(INT_MIN, saturatedAddition(-1, INT_MIN + 1));
68 EXPECT_EQ(INT_MIN, saturatedAddition(-2, INT_MIN + 1));
70 EXPECT_EQ(INT_MAX / 2 + 10000, saturatedAddition(INT_MAX / 2, 10000));
71 EXPECT_EQ(INT_MAX, saturatedAddition(INT_MAX / 2 + 1, INT_MAX / 2 + 1));
72 EXPECT_EQ(-1, saturatedAddition(INT_MIN, INT_MAX));
77 EXPECT_EQ(0, saturatedSubtraction(0, 0));
78 EXPECT_EQ(-1, saturatedSubtraction(0, 1));
79 EXPECT_EQ(-100, saturatedSubtraction(0, 100));
80 EXPECT_EQ(50, saturatedSubtraction(100, 50));
82 EXPECT_EQ(1, saturatedSubtraction(0, -1));
83 EXPECT_EQ(2, saturatedSubtraction(1, -1));
84 EXPECT_EQ(150, saturatedSubtraction(100, -50));
85 EXPECT_EQ(150, saturatedSubtraction(50, -100));
87 EXPECT_EQ(INT_MAX, saturatedSubtraction(INT_MAX, 0));
88 EXPECT_EQ(INT_MAX - 1, saturatedSubtraction(INT_MAX, 1));
89 EXPECT_EQ(INT_MAX - 1, saturatedSubtraction(INT_MAX - 1, 0));
90 EXPECT_EQ(INT_MAX, saturatedSubtraction(INT_MAX - 1, -1));
91 EXPECT_EQ(INT_MAX, saturatedSubtraction(INT_MAX - 1, -2));
92 EXPECT_EQ(-INT_MAX + 1, saturatedSubtraction(0, INT_MAX - 1));
93 EXPECT_EQ(-INT_MAX, saturatedSubtraction(-1, INT_MAX - 1));
94 EXPECT_EQ(-INT_MAX - 1, saturatedSubtraction(-2, INT_MAX - 1));
95 EXPECT_EQ(-INT_MAX - 1, saturatedSubtraction(-3, INT_MAX - 1));
97 EXPECT_EQ(INT_MIN, saturatedSubtraction(INT_MIN, 0));
98 EXPECT_EQ(INT_MIN + 1, saturatedSubtraction(INT_MIN + 1, 0));
99 EXPECT_EQ(INT_MIN, saturatedSubtraction(INT_MIN + 1, 1));
100 EXPECT_EQ(INT_MIN, saturatedSubtraction(INT_MIN + 1, 2));
102 EXPECT_EQ(0, saturatedSubtraction(INT_MIN, INT_MIN));
103 EXPECT_EQ(0, saturatedSubtraction(INT_MAX, INT_MAX));
104 EXPECT_EQ(INT_MAX, saturatedSubtraction(INT_MAX, INT_MIN));