Ejemplo n.º 1
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_searches_element_from_char_array");
	setup();
		test_searches_element_from_char_array();
	tearDown();
	testEnded();
	testStarted("test_give_null_if_the_element_is_not_present_in_array_for_char");
	setup();
		test_give_null_if_the_element_is_not_present_in_array_for_char();
	tearDown();
	testEnded();
	testStarted("test_gives_first_occurance_if_same_values_are_present");
	setup();
		test_gives_first_occurance_if_same_values_are_present();
	tearDown();
	testEnded();
	testStarted("test_searches_element_from_integer_array");
	setup();
		test_searches_element_from_integer_array();
	tearDown();
	testEnded();
	testStarted("test_give_null_if_the_element_is_not_present_in_array_for_integer");
	setup();
		test_give_null_if_the_element_is_not_present_in_array_for_integer();
	tearDown();
	testEnded();
	testStarted("test_search_element_from_the_float_array");
	setup();
		test_search_element_from_the_float_array();
	tearDown();
	testEnded();
	testStarted("test_give_null_if_the_element_is_not_present_in_array_for_float");
	setup();
		test_give_null_if_the_element_is_not_present_in_array_for_float();
	tearDown();
	testEnded();
	testStarted("test_search_element_from_array_of_doubles");
	setup();
		test_search_element_from_array_of_doubles();
	tearDown();
	testEnded();
	testStarted("test_search_element_from_array_of_strings");
	setup();
		test_search_element_from_array_of_strings();
	tearDown();
	testEnded();
	testStarted("test_give_null_if_the_element_is_not_present_in_array_for_strings");
	setup();
		test_give_null_if_the_element_is_not_present_in_array_for_strings();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Ejemplo n.º 2
0
int main() {
    fixtureSetup();
    resetTestCount();

    testStarted("test_search_element_from_the_character_array");
    setup();
    test_search_element_from_the_character_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_character_array_which_is_not_found");
    setup();
    test_search_element_from_the_character_array_which_is_not_found();
    tearDown();
    testEnded();
    testStarted("test_search_first_element_from_thecharacter_array_if_elements_are_same");
    setup();
    test_search_first_element_from_thecharacter_array_if_elements_are_same();
    tearDown();
    testEnded();
    testStarted("test_search_last_element_from_the_character_array_if_elements_are_same_with_diff_characters");
    setup();
    test_search_last_element_from_the_character_array_if_elements_are_same_with_diff_characters();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_integer_array");
    setup();
    test_search_element_from_the_integer_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_integer_array_which_not_found");
    setup();
    test_search_element_from_the_integer_array_which_not_found();
    tearDown();
    testEnded();
    testStarted("test_search_1st_element_from_the_integer_array");
    setup();
    test_search_1st_element_from_the_integer_array();
    tearDown();
    testEnded();
    testStarted("test_search_middle_element_from_the_integer_array");
    setup();
    test_search_middle_element_from_the_integer_array();
    tearDown();
    testEnded();
    testStarted("test_search_last_element_from_the_integer_array");
    setup();
    test_search_last_element_from_the_integer_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_float_array");
    setup();
    test_search_element_from_the_float_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_float_array_which_is_not_found");
    setup();
    test_search_element_from_the_float_array_which_is_not_found();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_double_array");
    setup();
    test_search_element_from_the_double_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_String_array");
    setup();
    test_search_element_from_the_String_array();
    tearDown();
    testEnded();
    testStarted("test_search_element_from_the_String_array_which_is_not_found");
    setup();
    test_search_element_from_the_String_array_which_is_not_found();
    tearDown();
    testEnded();

    summarizeTestCount();
    fixtureTearDown();
    return 0;
}