Lines Matching refs:expected
70 int32_t expected; in ZTEST() local
76 expected = round((i - 2000.0) / 10.0); in ZTEST()
77 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
86 int32_t expected; in ZTEST() local
92 expected = round((i - 2000.0) / 10.0 - 100.0); in ZTEST()
93 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
103 int32_t expected; in ZTEST() local
109 expected = round((i + 3000.0) / 10.0); in ZTEST()
110 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
120 int32_t expected; in ZTEST() local
126 expected = round((i + 3000.0) / 10.0 - 100.0); in ZTEST()
127 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
136 int32_t expected; in ZTEST() local
142 expected = round(0.4 * i - 30.0); in ZTEST()
143 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
148 expected = round(1.6 * i - 210.0); in ZTEST()
149 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
154 expected = round(390.0 - 1.4 * i); in ZTEST()
155 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
160 expected = round(240.0 - 0.8 * i); in ZTEST()
161 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()