Home
last modified time | relevance | path

Searched refs:TEST_ASSERT_TRUE (Results 1 – 25 of 26) sorted by relevance

12

/lvgl-latest/tests/src/test_cases/
Dtest_area.c27 TEST_ASSERT_TRUE(LV_COORD_IS_PCT(pct_coord)); in test_pct()
29 TEST_ASSERT_TRUE(LV_COORD_IS_SPEC(pct_coord)); in test_pct()
34 TEST_ASSERT_TRUE(LV_COORD_IS_PCT(pct_coord)); in test_pct()
36 TEST_ASSERT_TRUE(LV_COORD_IS_SPEC(pct_coord)); in test_pct()
41 TEST_ASSERT_TRUE(LV_COORD_IS_PCT(pct_coord)); in test_pct()
43 TEST_ASSERT_TRUE(LV_COORD_IS_SPEC(pct_coord)); in test_pct()
48 TEST_ASSERT_TRUE(LV_COORD_IS_PCT(pct_coord)); in test_pct()
50 TEST_ASSERT_TRUE(LV_COORD_IS_SPEC(pct_coord)); in test_pct()
55 TEST_ASSERT_TRUE(LV_COORD_IS_PCT(pct_coord)); in test_pct()
57 TEST_ASSERT_TRUE(LV_COORD_IS_SPEC(pct_coord)); in test_pct()
[all …]
Dtest_math.c119 TEST_ASSERT_TRUE(test_cubic_bezier_ease_functions(.42f, 0, .58f, 1)); in test_math_cubic_bezier_result_should_be_precise()
122 TEST_ASSERT_TRUE(test_cubic_bezier_ease_functions(0, 0, .58f, 1)); in test_math_cubic_bezier_result_should_be_precise()
125 TEST_ASSERT_TRUE(test_cubic_bezier_ease_functions(.42f, 0, 1, 1)); in test_math_cubic_bezier_result_should_be_precise()
128 TEST_ASSERT_TRUE(test_cubic_bezier_ease_functions(.25f, .1f, .25f, 1)); in test_math_cubic_bezier_result_should_be_precise()
135 TEST_ASSERT_TRUE(LV_ABS(legacy - cubic_bezier) <= 5); in test_math_cubic_bezier_result_should_be_precise()
Dtest_gridnav.c72 TEST_ASSERT_TRUE(g_key_data.press_happened); in gridnav_one_axis_move_only()
79 TEST_ASSERT_TRUE(g_key_data.press_happened); in gridnav_one_axis_move_only()
Dtest_anim.c56 TEST_ASSERT_TRUE(deleted); in test_anim_delete()
88 TEST_ASSERT_TRUE(deleted); in test_anim_delete_custom()
Dtest_array.c91 TEST_ASSERT_TRUE(lv_array_concat(&a, &b) == LV_RESULT_OK); in test_array_concat()
Dtest_fs.c56 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read()
60 TEST_ASSERT_TRUE(memcmp(buf, read_exp + cnt, br) == 0); in test_read()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_btnmatrix.c143 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 0, LV_BUTTONMATRIX_CTRL_DISABLED)); in test_button_matrix_set_ctrl_map_works()
144 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 1, in test_button_matrix_set_ctrl_map_works()
146 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 2, LV_BUTTONMATRIX_CTRL_HIDDEN)); in test_button_matrix_set_ctrl_map_works()
147 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 3, LV_BUTTONMATRIX_CTRL_CHECKABLE)); in test_button_matrix_set_ctrl_map_works()
168 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 0, LV_BUTTONMATRIX_CTRL_DISABLED)); in test_button_matrix_set_button_ctrl_works()
169 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 1, in test_button_matrix_set_button_ctrl_works()
171 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 2, LV_BUTTONMATRIX_CTRL_HIDDEN)); in test_button_matrix_set_button_ctrl_works()
172 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 3, LV_BUTTONMATRIX_CTRL_CHECKABLE)); in test_button_matrix_set_button_ctrl_works()
227 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 0, LV_BUTTONMATRIX_CTRL_HIDDEN)); in test_button_matrix_set_button_ctrl_all_works()
228 TEST_ASSERT_TRUE(lv_buttonmatrix_has_button_ctrl(btnm, 1, LV_BUTTONMATRIX_CTRL_HIDDEN)); in test_button_matrix_set_button_ctrl_all_works()
[all …]
Dtest_obj_property.c43 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
50 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
57 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
64 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
65 TEST_ASSERT_TRUE(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)); in test_obj_property_set_get_should_match()
66 TEST_ASSERT_TRUE(lv_obj_get_property(obj, LV_PROPERTY_OBJ_FLAG_HIDDEN).num); in test_obj_property_set_get_should_match()
70 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
77 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
85 TEST_ASSERT_TRUE(lv_obj_set_property(img, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
92 TEST_ASSERT_TRUE(lv_obj_set_property(img, &prop) == LV_RESULT_OK); in test_obj_property_set_get_should_match()
[all …]
Dtest_textarea.c41 TEST_ASSERT_TRUE(lv_textarea_get_password_mode(textarea)); in test_textarea_should_return_actual_text_when_password_mode_is_enabled()
145 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
151 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
157 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
163 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
169 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
170 TEST_ASSERT_TRUE(lv_textarea_get_password_mode(obj)); in test_textarea_properties()
171 TEST_ASSERT_TRUE(lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_PASSWORD_MODE).num); in test_textarea_properties()
175 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
181 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties()
[all …]
Dtest_dropdown.c30 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd2)); in test_dropdown_create_delete()
147 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd1)); in test_dropdown_click()
185 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd1)); in test_dropdown_keypad()
212 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd1)); in test_dropdown_keypad()
251 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd1)); in test_dropdown_keypad()
287 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd1)); in test_dropdown_encoder()
315 TEST_ASSERT_TRUE(lv_dropdown_is_open(dd2)); in test_dropdown_encoder()
334 TEST_ASSERT_TRUE(lv_dropdown_get_selected_highlight(dd2)); in test_dropdown_render_1()
464 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_dropdown_properties()
470 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_dropdown_properties()
[all …]
Dtest_keyboard.c52 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties()
58 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties()
64 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties()
70 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties()
Dtest_image.c460 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
466 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
472 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
478 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
485 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
495 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
501 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
507 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
513 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
519 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties()
[all …]
Dtest_objid.c14 TEST_ASSERT_TRUE(strncmp("obj", buf, strlen("obj")) == 0); in test_obj_id_should_match_class_name()
18 TEST_ASSERT_TRUE(strncmp("image", buf, strlen("image")) == 0); in test_obj_id_should_match_class_name()
Dtest_animimg.c116 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_animimg_property()
124 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_animimg_property()
130 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_animimg_property()
Dtest_slider.c42 TEST_ASSERT_TRUE(objw >= objh); in test_textarea_should_have_valid_documented_default_values()
224 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties()
233 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties()
239 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties()
245 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties()
Dtest_btn.c25 TEST_ASSERT_TRUE(lv_obj_has_flag(btn, LV_OBJ_FLAG_SCROLL_ON_FOCUS)); in test_button_creation()
Dtest_table.c63 TEST_ASSERT_TRUE(has_ctrl); in test_table_should_identify_cell_with_ctrl()
72 TEST_ASSERT_TRUE(has_ctrl); in test_table_should_clear_selected_cell_ctrl()
90 TEST_ASSERT_TRUE(has_ctrl); in test_table_should_keep_not_selected_cell_ctrl()
Dtest_line.c39 TEST_ASSERT_TRUE(lv_line_get_y_invert(line)); in test_line_should_return_valid_y_invert()
160 TEST_ASSERT_TRUE(lv_line_is_point_array_mutable(line)); in test_line_point_array_getters_and_setters()
Dtest_roller.c135 TEST_ASSERT_TRUE(selected); in test_roller_set_selected_option_str()
361 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_roller_properties()
368 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_roller_properties()
Dtest_checkbox.c48 TEST_ASSERT_TRUE(event_called); in test_checkbox_should_call_event_handler_on_click_when_enabled()
Dtest_tabview.c284 TEST_ASSERT_TRUE(lv_obj_is_visible(label1)); in test_tabview_update_on_external_scroll()
Dtest_spinbox.c151 TEST_ASSERT_TRUE(lv_spinbox_get_rollover(tmp)); in test_spinbox_rollover()
Dtest_scale.c503 TEST_ASSERT_TRUE(lv_line_is_point_array_mutable(line)); in test_scale_set_line_needle_value()
/lvgl-latest/tests/unity/
Dunity_support.h35 # define TEST_ASSERT_EQUAL_COLOR(c1, c2) TEST_ASSERT_TRUE(lv_color_eq(c1, c2))
36 # define TEST_ASSERT_EQUAL_COLOR_MESSAGE(c1, c2, msg) TEST_ASSERT_TRUE(lv_color_eq(c1, c2), m…
38 # define TEST_ASSERT_EQUAL_COLOR32(c1, c2) TEST_ASSERT_TRUE(lv_color32_eq(c1, c2…
39 # define TEST_ASSERT_EQUAL_COLOR32_MESSAGE(c1, c2, msg) TEST_ASSERT_TRUE(lv_color32_eq(c1, c2…
/lvgl-latest/tests/src/test_cases/libs/
Dtest_font_stress.c282 TEST_ASSERT_TRUE(remove_ok); in test_font_manager_stress()
285 TEST_ASSERT_TRUE(remove_ok); in test_font_manager_stress()
288 TEST_ASSERT_TRUE(success); in test_font_manager_stress()

12