Home
last modified time | relevance | path

Searched refs:assert_int_equal (Results 1 – 6 of 6) sorted by relevance

/external/cmockery/cmockery_0_1_2/src/example/
Dcalculator_test.c96 assert_int_equal(add(3, 3), 6); in test_add()
97 assert_int_equal(add(3, -3), 0); in test_add()
102 assert_int_equal(subtract(3, 3), 0); in test_subtract()
103 assert_int_equal(subtract(3, -3), 6); in test_subtract()
108 assert_int_equal(multiply(3, 3), 9); in test_multiply()
109 assert_int_equal(multiply(3, 0), 0); in test_multiply()
114 assert_int_equal(divide(10, 2), 5); in test_divide()
115 assert_int_equal(divide(2, 10), 0); in test_divide()
142 assert_int_equal((int)find_operator_function_by_string(0, NULL, "test"), in test_find_operator_function_by_string_valid_null_functions()
154 assert_int_equal((int)find_operator_function_by_string( in test_find_operator_function_by_string_not_found()
[all …]
Dproduct_database_test.c38 assert_int_equal((int)connect_to_product_database(), 0xDA7ABA53); in test_connect_to_product_database()
47 assert_int_equal((int)connect_to_product_database(), 0xDA7ABA53); in test_connect_to_product_database_bad_url()
56 assert_int_equal((int)connect_to_product_database(), 0xDA7ABA53); in test_connect_to_product_database_missing_parameter()
Dassert_macro_test.c34 assert_int_equal(string_to_status_code("Address not found"), 0); in string_to_status_code_test()
35 assert_int_equal(string_to_status_code("Connection timed out"), 1); in string_to_status_code_test()
Dcustomer_database_test.c42 assert_int_equal((int)connect_to_customer_database(), 0x0DA7ABA53); in test_connect_to_customer_database()
60 assert_int_equal(get_customer_id_by_name(&connection, "john doe"), 543); in test_get_customer_id_by_name()
Dkey_value_test.c58 assert_int_equal(found->key, key_values[i].key); in test_find_item_by_value()
/external/cmockery/cmockery_0_1_2/src/google/
Dcmockery.h159 #define assert_int_equal(a, b) _assert_int_equal(a, b, __FILE__, __LINE__) macro