コード例 #1
0
ファイル: stackTestRunner.c プロジェクト: aniketsr/DSA
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;
}
コード例 #2
0
ファイル: stackTestRunner.c プロジェクト: kumarRaj/DSA
int main(){
	fixtureSetup();
	resetTestCount();

	testStarted("test_creates_a_stack_of_given_length");
	setup();
		test_creates_a_stack_of_given_length();
	tearDown();
	testEnded();
	testStarted("test_adds_the_given_integerto_stack");
	setup();
		test_adds_the_given_integerto_stack();
	tearDown();
	testEnded();
	testStarted("test_adds_the_doubles_to_stack");
	setup();
		test_adds_the_doubles_to_stack();
	tearDown();
	testEnded();
	testStarted("test_adds_Strings_to_stack");
	setup();
		test_adds_Strings_to_stack();
	tearDown();
	testEnded();
	testStarted("test_adds_structures_to_stacks");
	setup();
		test_adds_structures_to_stacks();
	tearDown();
	testEnded();
	testStarted("test_doubles_the_length_of_stack_on_stack_full");
	setup();
		test_doubles_the_length_of_stack_on_stack_full();
	tearDown();
	testEnded();
	testStarted("test_removes_the_top_element_from_the_stack_integers");
	setup();
		test_removes_the_top_element_from_the_stack_integers();
	tearDown();
	testEnded();
	testStarted("test_removes_the_top_element_from_the_stack_Strings");
	setup();
		test_removes_the_top_element_from_the_stack_Strings();
	tearDown();
	testEnded();
	testStarted("test_removes_structures_on_the_top_of_stacks");
	setup();
		test_removes_structures_on_the_top_of_stacks();
	tearDown();
	testEnded();
	testStarted("test_remove_on_empty_stack");
	setup();
		test_remove_on_empty_stack();
	tearDown();
	testEnded();
	testStarted("test_gives_top_element_integers");
	setup();
		test_gives_top_element_integers();
	tearDown();
	testEnded();
	testStarted("test_gives_the_top_stack_character");
	setup();
		test_gives_the_top_stack_character();
	tearDown();
	testEnded();
	testStarted("test_tells_the_stack_is_empty");
	setup();
		test_tells_the_stack_is_empty();
	tearDown();
	testEnded();
	testStarted("test_tells_the_stack_is_not_empty");
	setup();
		test_tells_the_stack_is_not_empty();
	tearDown();
	testEnded();
	testStarted("test_tells_the_stack_is_full");
	setup();
		test_tells_the_stack_is_full();
	tearDown();
	testEnded();
	testStarted("test_tells_the_stack_is_not_full");
	setup();
		test_tells_the_stack_is_not_full();
	tearDown();
	testEnded();

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