int main(){
	fixtureSetup();
	resetTestCount();

	setup();
		test_doesParenthsysMatch_should_accept_text_and_return_true_if_parethesis_match();
	tearDown();

	setup();
		test_doesParenthsysMatch_should_accept_text_and_return_false_if_parethesis_dont_match();
	tearDown();

	setup();
		test_doesParenthsysMatch_should_accept_text_and_return_true_for_multiple_parenthesis();
	tearDown();

	setup();
		test_doesParenthsysMatch_should_accept_text_and_return_false_for_multiple_parenthesis();
	tearDown();

	setup();
		test_doesParenthsysMatch_should_accept_text_and_return_false();
	tearDown();

	setup();
		test_doesParenthsysMatch_should_return_false_for_multiple_parenthesis();
	tearDown();


	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #2
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_should_sort_data_");
	setup();
		test_should_sort_data_();
	tearDown();
	testEnded();
	testStarted("test_should_sort_int_data");
	setup();
		test_should_sort_int_data();
	tearDown();
	testEnded();
	testStarted("test_should_sort_double_data");
	setup();
		test_should_sort_double_data();
	tearDown();
	testEnded();
	testStarted("test_should_sort_char_data");
	setup();
		test_should_sort_char_data();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #3
0
int main() {
    fixtureSetup();
    resetTestCount();

    testStarted("test_sort_Int_array");
    setup();
    test_sort_Int_array();
    tearDown();
    testEnded();
    testStarted("test_sort_double_array");
    setup();
    test_sort_double_array();
    tearDown();
    testEnded();
    testStarted("test_sort_character_array");
    setup();
    test_sort_character_array();
    tearDown();
    testEnded();
    testStarted("test_sort_string_array");
    setup();
    test_sort_string_array();
    tearDown();
    testEnded();
    testStarted("test_sort_struct_array");
    setup();
    test_sort_struct_array();
    tearDown();
    testEnded();

    summarizeTestCount();
    fixtureTearDown();
    return 0;
}
Example #4
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_bubble_sort_should_sort_int_array_elements");
	setup();
		test_bubble_sort_should_sort_int_array_elements();
	tearDown();
	testEnded();
	testStarted("test_bubble_sort_should_sort_Double_array_elements");
	setup();
		test_bubble_sort_should_sort_Double_array_elements();
	tearDown();
	testEnded();
	testStarted("test_bubble_sort_should_sort_float_array_elements");
	setup();
		test_bubble_sort_should_sort_float_array_elements();
	tearDown();
	testEnded();
	testStarted("test_bubble_sort_should_sort_char_array_elements");
	setup();
		test_bubble_sort_should_sort_char_array_elements();
	tearDown();
	testEnded();
	testStarted("test_bubble_sort_should_sort_string_array_elements");
	setup();
		test_bubble_sort_should_sort_string_array_elements();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #5
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_sorting_array_of_2_integers_using_merge_sort");
	setup();
		test_sorting_array_of_2_integers_using_merge_sort();
	tearDown();
	testEnded();
	testStarted("test_sorting_array_of_4_integers_using_merge_sort");
	setup();
		test_sorting_array_of_4_integers_using_merge_sort();
	tearDown();
	testEnded();
	testStarted("test_sorting_array_of_3_integers_using_merge_sort");
	setup();
		test_sorting_array_of_3_integers_using_merge_sort();
	tearDown();
	testEnded();
	testStarted("test_sorting_array_of_5_integers_using_merge_sort");
	setup();
		test_sorting_array_of_5_integers_using_merge_sort();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #6
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_to_create_Stack");
	setup();
		test_to_create_Stack();
	tearDown();
	testEnded();
	testStarted("test_1_to_push_element_into_stack");
	setup();
		test_1_to_push_element_into_stack();
	tearDown();
	testEnded();
	testStarted("test_2_to_pop_element_into_stack");
	setup();
		test_2_to_pop_element_into_stack();
	tearDown();
	testEnded();
	testStarted("test_push_struct_into_stack");
	setup();
		test_push_struct_into_stack();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_isort_should_sortInteger_elements");
	setup();
		test_isort_should_sortInteger_elements();
	tearDown();
	testEnded();
	testStarted("test_isort_should_sortchar_elements");
	setup();
		test_isort_should_sortchar_elements();
	tearDown();
	testEnded();
	testStarted("test_isort_should_sort_string_elements");
	setup();
		test_isort_should_sort_string_elements();
	tearDown();
	testEnded();
	testStarted("test_isort_should_sort_double_elements");
	setup();
		test_isort_should_sort_double_elements();
	tearDown();
	testEnded();
	testStarted("test_isort_should_sort_float_elements");
	setup();
		test_isort_should_sort_float_elements();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #8
0
int main() {
    fixtureSetup();
    resetTestCount();

    testStarted("test_1_sorts_collections_of_Integers");
    setup();
    test_1_sorts_collections_of_Integers();
    tearDown();
    testEnded();
    testStarted("test_2_sorts_collections_of_Doubles");
    setup();
    test_2_sorts_collections_of_Doubles();
    tearDown();
    testEnded();
    testStarted("test_3_sorts_collections_of_Characters");
    setup();
    test_3_sorts_collections_of_Characters();
    tearDown();
    testEnded();
    testStarted("test_4_sorts_collections_of_String");
    setup();
    test_4_sorts_collections_of_String();
    tearDown();
    testEnded();
    testStarted("test_fail");
    setup();
    test_fail();
    tearDown();
    testEnded();

    summarizeTestCount();
    fixtureTearDown();
    return 0;
}
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_create_a_shedular");
	setup();
		test_create_a_shedular();
	tearDown();
	testEnded();
	testStarted("test_create_a_process");
	setup();
		test_create_a_process();
	tearDown();
	testEnded();
	testStarted("test_insert_a_process_in_empty_shedular");
	setup();
		test_insert_a_process_in_empty_shedular();
	tearDown();
	testEnded();
	testStarted("test_insert_2_process_in_shedular");
	setup();
		test_insert_2_process_in_shedular();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #10
0
int main(){
	fixtureSetup();
	resetTestCount();

	setup();
		test_for_create_new_process();
	tearDown();

	setup();
		test_for_add_process_in_schedular();
	tearDown();

	setup();
		test_add_process_which_has_low_priority();
	tearDown();

	setup();
		test_for_add_new_process_which_has_higher_priority_than_exsisting_process();
	tearDown();


	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #11
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_inserting_first_element");
	setup();
		test_inserting_first_element();
	tearDown();
	testEnded();
	testStarted("test_inserting_elements_at_depth_two");
	setup();
		test_inserting_elements_at_depth_two();
	tearDown();
	testEnded();
	testStarted("test_inserting_two_childrens_at_depth_two");
	setup();
		test_inserting_two_childrens_at_depth_two();
	tearDown();
	testEnded();
	testStarted("test_adding_childs_to_right_child_of_root");
	setup();
		test_adding_childs_to_right_child_of_root();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #12
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_sorts_integer_elements");
	setup();
		test_sorts_integer_elements();
	tearDown();
	testEnded();
	testStarted("test_sorts_integer_when_no_of_elements_is_odd");
	setup();
		test_sorts_integer_when_no_of_elements_is_odd();
	tearDown();
	testEnded();
	testStarted("test_sorts_float_elements");
	setup();
		test_sorts_float_elements();
	tearDown();
	testEnded();
	testStarted("test_sorts_characters");
	setup();
		test_sorts_characters();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #13
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_to_sort_int_data");
	setup();
		test_to_sort_int_data();
	tearDown();
	testEnded();
	testStarted("test_to_sort_float_data");
	setup();
		test_to_sort_float_data();
	tearDown();
	testEnded();
	testStarted("test_to_sort_char_data");
	setup();
		test_to_sort_char_data();
	tearDown();
	testEnded();
	testStarted("test_to_sort_Account_data");
	setup();
		test_to_sort_Account_data();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_to_create_a_priority_queue");
	setup();
		test_to_create_a_priority_queue();
	tearDown();
	testEnded();
	testStarted("test_to_insert_first_element_in_empty_priority_queue");
	setup();
		test_to_insert_first_element_in_empty_priority_queue();
	tearDown();
	testEnded();
	testStarted("test_to_insert_element_into_priority_queue_when_another_element_is_there");
	setup();
		test_to_insert_element_into_priority_queue_when_another_element_is_there();
	tearDown();
	testEnded();
	testStarted("test_to_delete_element_from_priority_queue");
	setup();
		test_to_delete_element_from_priority_queue();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #15
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_1_creates_a_new_process");
	setup();
		test_1_creates_a_new_process();
	tearDown();
	testEnded();
	testStarted("test_2_adds_front_process");
	setup();
		test_2_adds_front_process();
	tearDown();
	testEnded();
	testStarted("test_3_adds_process_that_have_high_priority_rather_than_first");
	setup();
		test_3_adds_process_that_have_high_priority_rather_than_first();
	tearDown();
	testEnded();
	testStarted("test_4_adds_process_with_priority_in_between_process_queue");
	setup();
		test_4_adds_process_with_priority_in_between_process_queue();
	tearDown();
	testEnded();
	testStarted("test_5_adds_process_with_very_low_priority");
	setup();
		test_5_adds_process_with_very_low_priority();
	tearDown();
	testEnded();
	testStarted("test_6_removes_first_which_is_only_process");
	setup();
		test_6_removes_first_which_is_only_process();
	tearDown();
	testEnded();
	testStarted("test_7_removes_processes_in_middle");
	setup();
		test_7_removes_processes_in_middle();
	tearDown();
	testEnded();
	testStarted("test_8_removes_last_process");
	setup();
		test_8_removes_last_process();
	tearDown();
	testEnded();
	testStarted("test_9_removes_first_process_in_many");
	setup();
		test_9_removes_first_process_in_many();
	tearDown();
	testEnded();
	testStarted("test_fail");
	setup();
		test_fail();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #16
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_1_create_queue_for_length_of_given_size");
	setup();
		test_1_create_queue_for_length_of_given_size();
	tearDown();
	testEnded();
	testStarted("test_2_create_queue_for_float_elements");
	setup();
		test_2_create_queue_for_float_elements();
	tearDown();
	testEnded();
	testStarted("test_for_insert_int_element_at_front_of_queue");
	setup();
		test_for_insert_int_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_for_insert_char_element_at_front_of_queue");
	setup();
		test_for_insert_char_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_for_insert_string_element_at_front_of_queue");
	setup();
		test_for_insert_string_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_for_delete_int_element_at_front_of_queue");
	setup();
		test_for_delete_int_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_for_delete_float_element_at_front_of_queue");
	setup();
		test_for_delete_float_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_for_delete_char_element_at_front_of_queue");
	setup();
		test_for_delete_char_element_at_front_of_queue();
	tearDown();
	testEnded();
	testStarted("test_if_queue_is_full");
	setup();
		test_if_queue_is_full();
	tearDown();
	testEnded();
	testStarted("test_if_queue_is_empty");
	setup();
		test_if_queue_is_empty();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #17
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;
}
Example #18
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_create_process");
	setup();
		test_create_process();
	tearDown();
	testEnded();
	testStarted("test_add_first_process");
	setup();
		test_add_first_process();
	tearDown();
	testEnded();
	testStarted("test_add_process_with_priority_higher_than_first_process");
	setup();
		test_add_process_with_priority_higher_than_first_process();
	tearDown();
	testEnded();
	testStarted("test_add_process_with_priority_somewhere_in_between_process_queue_only_2_elements");
	setup();
		test_add_process_with_priority_somewhere_in_between_process_queue_only_2_elements();
	tearDown();
	testEnded();
	testStarted("test_add_process_with_priority_somewhere_in_between_process_queue");
	setup();
		test_add_process_with_priority_somewhere_in_between_process_queue();
	tearDown();
	testEnded();
	testStarted("test_add_process_with_very_low_priority");
	setup();
		test_add_process_with_very_low_priority();
	tearDown();
	testEnded();
	testStarted("test_remove_first_and_only_process");
	setup();
		test_remove_first_and_only_process();
	tearDown();
	testEnded();
	testStarted("test_remove_processes_in_middle");
	setup();
		test_remove_processes_in_middle();
	tearDown();
	testEnded();
	testStarted("test_remove_last_process");
	setup();
		test_remove_last_process();
	tearDown();
	testEnded();
	testStarted("test_remove_first_in_many");
	setup();
		test_remove_first_in_many();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #19
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_create_an_circular_queue_with_initial_value_as_zero");
	setup();
		test_create_an_circular_queue_with_initial_value_as_zero();
	tearDown();
	testEnded();
	testStarted("test_inserting_element_in_integer_queue");
	setup();
		test_inserting_element_in_integer_queue();
	tearDown();
	testEnded();
	testStarted("test_inserting_element_in_queue_having_rear_equals_to_capacity_minus_1");
	setup();
		test_inserting_element_in_queue_having_rear_equals_to_capacity_minus_1();
	tearDown();
	testEnded();
	testStarted("test_inserting_integer_in_full_queue");
	setup();
		test_inserting_integer_in_full_queue();
	tearDown();
	testEnded();
	testStarted("test_deleting_integer_from_queue");
	setup();
		test_deleting_integer_from_queue();
	tearDown();
	testEnded();
	testStarted("test_deleting_integer_from_an_empty_queue");
	setup();
		test_deleting_integer_from_an_empty_queue();
	tearDown();
	testEnded();
	testStarted("test_deleting_integer_from_queue_having_only_one_element");
	setup();
		test_deleting_integer_from_queue_having_only_one_element();
	tearDown();
	testEnded();
	testStarted("test_deleting_integer_from_queue_where_front_is_eual_to_rear_minus_one");
	setup();
		test_deleting_integer_from_queue_where_front_is_eual_to_rear_minus_one();
	tearDown();
	testEnded();
	testStarted("test_deleting_integer_from_queue_having_front_equals_to_capacity_minus_one");
	setup();
		test_deleting_integer_from_queue_having_front_equals_to_capacity_minus_one();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #20
0
int main() {
    fixtureSetup();
    resetTestCount();

    testStarted("test_insert_data_at_root");
    setup();
    test_insert_data_at_root();
    tearDown();
    testEnded();

    summarizeTestCount();
    fixtureTearDown();
    return 0;
}
Example #21
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_2_inserts_an_process_in_queue");
	setup();
		test_2_inserts_an_process_in_queue();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #22
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_to_create_queue");
	setup();
		test_to_create_queue();
	tearDown();
	testEnded();
	testStarted("test_to_enqueue_an_element");
	setup();
		test_to_enqueue_an_element();
	tearDown();
	testEnded();
	testStarted("test_to_enqueue_two_elements");
	setup();
		test_to_enqueue_two_elements();
	tearDown();
	testEnded();
	testStarted("test_to_enqueue_three_elements_with_complex_priority");
	setup();
		test_to_enqueue_three_elements_with_complex_priority();
	tearDown();
	testEnded();
	testStarted("test_to_dequeue_an_element");
	setup();
		test_to_dequeue_an_element();
	tearDown();
	testEnded();
	testStarted("test_to_dequeue_one_element_from_two_elements");
	setup();
		test_to_dequeue_one_element_from_two_elements();
	tearDown();
	testEnded();
	testStarted("test_to_enqueue_two_elements_at_end");
	setup();
		test_to_enqueue_two_elements_at_end();
	tearDown();
	testEnded();
	testStarted("test_to_enqueue_elements_in_between_of_queue");
	setup();
		test_to_enqueue_elements_in_between_of_queue();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #23
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_creates_a_stack_of_3");
	setup();
		test_creates_a_stack_of_3();
	tearDown();
	testEnded();
	testStarted("test_adds_the_integers_to_stack");
	setup();
		test_adds_the_integers_to_stack();
	tearDown();
	testEnded();
	testStarted("test_adds_the_double_to_stack");
	setup();
		test_adds_the_double_to_stack();
	tearDown();
	testEnded();
	testStarted("test_adds_Strings_to_stack");
	setup();
		test_adds_Strings_to_stack();
	tearDown();
	testEnded();
	testStarted("test_doubles_the_length_of_stack_when_stack_is_full");
	setup();
		test_doubles_the_length_of_stack_when_stack_is_full();
	tearDown();
	testEnded();
	testStarted("test_pops_the_top_element_from_the_stack");
	setup();
		test_pops_the_top_element_from_the_stack();
	tearDown();
	testEnded();
	testStarted("test_pops_the_top_element_from_the_stack_Strings");
	setup();
		test_pops_the_top_element_from_the_stack_Strings();
	tearDown();
	testEnded();
	testStarted("test_remove_on_empty_stack");
	setup();
		test_remove_on_empty_stack();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_create_queue");
	setup();
		test_create_queue();
	tearDown();
	testEnded();
	testStarted("test_insert_integer_data_in_Start_of_queue");
	setup();
		test_insert_integer_data_in_Start_of_queue();
	tearDown();
	testEnded();
	testStarted("test_insert_integer_data_in_queue1");
	setup();
		test_insert_integer_data_in_queue1();
	tearDown();
	testEnded();
	testStarted("test_insert_float_data_in_queue1");
	setup();
		test_insert_float_data_in_queue1();
	tearDown();
	testEnded();
	testStarted("test_insert_string_data_in_queue1");
	setup();
		test_insert_string_data_in_queue1();
	tearDown();
	testEnded();
	testStarted("test_delete_integer_data_in_queue1");
	setup();
		test_delete_integer_data_in_queue1();
	tearDown();
	testEnded();
	testStarted("test_delete_float_data_in_queue1");
	setup();
		test_delete_float_data_in_queue1();
	tearDown();
	testEnded();
	testStarted("test_delete_string_data_in_queue");
	setup();
		test_delete_string_data_in_queue();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #25
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_should_create_tree_and_insert_root_node_and_return_true");
	setup();
		test_should_create_tree_and_insert_root_node_and_return_true();
	tearDown();
	testEnded();
	testStarted("test_should_insert_child_for_the_root_node");
	setup();
		test_should_insert_child_for_the_root_node();
	tearDown();
	testEnded();
	testStarted("test_getChildren_should_return_false_root__has_no_child");
	setup();
		test_getChildren_should_return_false_root__has_no_child();
	tearDown();
	testEnded();
	testStarted("test_search_should_return_true_when_data_found_in_tree");
	setup();
		test_search_should_return_true_when_data_found_in_tree();
	tearDown();
	testEnded();
	testStarted("test_search_should_return_false_when_data_not_in_tree");
	setup();
		test_search_should_return_false_when_data_not_in_tree();
	tearDown();
	testEnded();
	testStarted("test_to_insert_multiple_nodes_at_root_node");
	setup();
		test_to_insert_multiple_nodes_at_root_node();
	tearDown();
	testEnded();
	testStarted("test_to_insert_child_of_child_of_root");
	setup();
		test_to_insert_child_of_child_of_root();
	tearDown();
	testEnded();
	testStarted("test_should_delete_element_and_return_true");
	setup();
		test_should_delete_element_and_return_true();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #26
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_1");
	setup();
		test_1();
	tearDown();
	testEnded();
	testStarted("test_2");
	setup();
		test_2();
	tearDown();
	testEnded();
	testStarted("test_3");
	setup();
		test_3();
	tearDown();
	testEnded();
	testStarted("test_4");
	setup();
		test_4();
	tearDown();
	testEnded();
	testStarted("test_5");
	setup();
		test_5();
	tearDown();
	testEnded();
	testStarted("test_6");
	setup();
		test_6();
	tearDown();
	testEnded();
	testStarted("test_7");
	setup();
		test_7();
	tearDown();
	testEnded();
	testStarted("test_8");
	setup();
		test_8();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #27
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_create_should_create_a_tree");
	setup();
		test_create_should_create_a_tree();
	tearDown();
	testEnded();
	testStarted("test_should_create_root_node_with_int_data_in_tree");
	setup();
		test_should_create_root_node_with_int_data_in_tree();
	tearDown();
	testEnded();
	testStarted("test_should_create_root_node_with_char_data_in_tree");
	setup();
		test_should_create_root_node_with_char_data_in_tree();
	tearDown();
	testEnded();
	testStarted("test_should_insert_int_children_data_to_root_node");
	setup();
		test_should_insert_int_children_data_to_root_node();
	tearDown();
	testEnded();
	testStarted("test_should_insert_char_children_data_to_root_node");
	setup();
		test_should_insert_char_children_data_to_root_node();
	tearDown();
	testEnded();
	testStarted("test_should_insert_int_children_data_to_a_child_node");
	setup();
		test_should_insert_int_children_data_to_a_child_node();
	tearDown();
	testEnded();
	testStarted("test_should_insert_data_anywhere_in_the_tree");
	setup();
		test_should_insert_data_anywhere_in_the_tree();
	tearDown();
	testEnded();
	testStarted("test_should_search_the_node_in_the_bst");
	setup();
		test_should_search_the_node_in_the_bst();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #28
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_creation_of_priority_queue");
	setup();
		test_creation_of_priority_queue();
	tearDown();
	testEnded();
	testStarted("test_inserting_first_process");
	setup();
		test_inserting_first_process();
	tearDown();
	testEnded();
	testStarted("test_inserting_two_nodes_with_second_of_lower_priority");
	setup();
		test_inserting_two_nodes_with_second_of_lower_priority();
	tearDown();
	testEnded();
	testStarted("test_inserting_two_nodes_with_second_of_higher_priority");
	setup();
		test_inserting_two_nodes_with_second_of_higher_priority();
	tearDown();
	testEnded();
	testStarted("test_inserting_in_between");
	setup();
		test_inserting_in_between();
	tearDown();
	testEnded();
	testStarted("test_inserting_two_processes_of_same_priority");
	setup();
		test_inserting_two_processes_of_same_priority();
	tearDown();
	testEnded();
	testStarted("test_inserting_three_processes_of_which_two_are_of_same_priority");
	setup();
		test_inserting_three_processes_of_which_two_are_of_same_priority();
	tearDown();
	testEnded();
	testStarted("test_removing_node");
	setup();
		test_removing_node();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
Example #29
0
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_push_new_element_in_integer_stack");
	setup();
		test_push_new_element_in_integer_stack();
	tearDown();
	testEnded();
	testStarted("test_increment_of_the_length_of_stack_if_stack_is_full");
	setup();
		test_increment_of_the_length_of_stack_if_stack_is_full();
	tearDown();
	testEnded();
	testStarted("test_adds_the_given_Strings_at_the_top_of_the_stack");
	setup();
		test_adds_the_given_Strings_at_the_top_of_the_stack();
	tearDown();
	testEnded();
	testStarted("test_pop_the_top_most_element_of_stack");
	setup();
		test_pop_the_top_most_element_of_stack();
	tearDown();
	testEnded();
	testStarted("test_pop_the_element_of_empty_stack");
	setup();
		test_pop_the_element_of_empty_stack();
	tearDown();
	testEnded();
	testStarted("test_pop_the_element_from_a_string_stack");
	setup();
		test_pop_the_element_from_a_string_stack();
	tearDown();
	testEnded();
	testStarted("test_gives_the_top_most_element_of_stack");
	setup();
		test_gives_the_top_most_element_of_stack();
	tearDown();
	testEnded();
	testStarted("test_gives_the_top_most_element_of_stack_String");
	setup();
		test_gives_the_top_most_element_of_stack_String();
	tearDown();
	testEnded();

	summarizeTestCount();
	fixtureTearDown();
	return 0;
}
int main(){
	fixtureSetup();
	resetTestCount();

	setup();
		test_expression_1_is_correct();
	tearDown();

	setup();
		test_expression_2_is_incorrect();
	tearDown();

	setup();
		test_expression_3_is_correct();
	tearDown();

	setup();
		test_expression_4_is_correct();
	tearDown();

	setup();
		test_expression_5_is_incorrect();
	tearDown();

	setup();
		test_expression_6_is_incorrect();
	tearDown();

	setup();
		test_expression_7_is_incorrect();
	tearDown();

	setup();
		test_expression_8_is_incorrect();
	tearDown();

	setup();
		test_expression_9_is_correct();
	tearDown();


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