Searched refs:zexpect_within (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/ztest/zexpect/src/ |
D | main.c | 144 zexpect_within(7, 5, 2); in ZTEST() 145 zexpect_within(7, 7, 0); in ZTEST() 146 zexpect_within(7, 7, 3); in ZTEST() 147 zexpect_within(7, 7 + 3, 3); in ZTEST() 153 zexpect_within(7, 5, 1); in ZTEST()
|
/Zephyr-latest/tests/drivers/sensor/ina230/src/ |
D | ina230_test.c | 78 zexpect_within(11.98, actual, 1.25e-3, "Expected 11.98 V, got %.6f V", actual); in test_datasheet_example() 82 zexpect_within(10.0, actual, 1e-3, "Expected 10 A, got %.6f V", actual); in test_datasheet_example() 86 zexpect_within(119.82, actual, 25e-3, "Expected 119.82 W, got %.6f W", actual); in test_datasheet_example() 105 zexpect_within(shunt_register_expected, shunt_register_actual, 1, in test_shunt_cal() 137 zexpect_within(current_expected_A, current_actual_A, fixture->current_lsb_uA*1e-6, in test_current() 171 zexpect_within(voltage_expected_V, voltage_actual_V, 1e-6, in test_bus_voltage() 206 zexpect_within(power_expected_W, power_actual_W, 1e-6, in test_power()
|
/Zephyr-latest/tests/drivers/sensor/ina237/src/ |
D | ina237_test.c | 64 zexpect_within(shunt_register_expected, shunt_register_actual, 1, in test_shunt_cal() 96 zexpect_within(current_expected_A, current_actual_A, fixture->current_lsb_uA*1e-6, in test_current() 128 zexpect_within(voltage_expected_V, voltage_actual_V, 1e-6, in test_bus_voltage() 161 zexpect_within(power_expected_W, power_actual_W, 1e-6, in test_power() 195 zexpect_within(temp_expected_degC, temp_actual_degC, 125e-3, in test_temperature() 239 zexpect_within(vshunt_expected_mV, vshunt_actual_mV, 1e-9, in test_vshunt()
|
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 691 #define zexpect_within(a, b, delta, ...) \ macro
|