[Taranis] A lot of new features, >100 hours work in one commit...
This commit is contained in:
+4
-4
@@ -763,10 +763,10 @@ TEST(Curves, LinearIntpol)
|
||||
for (int8_t i=-2; i<=2; i++) {
|
||||
g_model.points[2+i] = 50*i;
|
||||
}
|
||||
EXPECT_EQ(intpol(-1024, 0), -1024);
|
||||
EXPECT_EQ(intpol(0, 0), 0);
|
||||
EXPECT_EQ(intpol(1024, 0), 1024);
|
||||
EXPECT_EQ(intpol(-192, 0), -192);
|
||||
EXPECT_EQ(applyCustomCurve(-1024, 0), -1024);
|
||||
EXPECT_EQ(applyCustomCurve(0, 0), 0);
|
||||
EXPECT_EQ(applyCustomCurve(1024, 0), 1024);
|
||||
EXPECT_EQ(applyCustomCurve(-192, 0), -192);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
Reference in New Issue
Block a user