Ejemplo n.º 1
0
cute::suite make_suite_ControllerTest()
{
	cute::suite s;
	s.push_back(CUTE(Controller_startSequence));
	s.push_back(CUTE(Controller_testActions));
	return s;
}
Ejemplo n.º 2
0
cute::suite IReadStreamSuite(){
	cute::suite s;
	s.push_back(CUTE(TestIReadStreamNoFile));
	s.push_back(CUTE(TestIReadStreamSingleRead));
	s.push_back(CUTE(TestIReadStreamFull));
	return s;
}
Ejemplo n.º 3
0
void GridContainerTest::runSuite(){
	cute::suite s;
	s.push_back(CUTE(GridContainerTest::testCreation));
	s.push_back(CUTE(GridContainerTest::testGetSet));
	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "GridContainerTest");
}
Ejemplo n.º 4
0
void ClusterTest::runSuite() {
	cute::suite s;
	s.push_back(CUTE(ClusterTest::testCreateConnections));
	s.push_back(CUTE(ClusterTest::testCreateNodes));
	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "ClusterTest");
}
cute::suite make_suite_fill_and_generate_algorithms() {
	cute::suite s { };
	s.push_back(CUTE(test_algorithm_1));
	s.push_back(CUTE(test_algorithm_2));
	s.push_back(CUTE(test_algorithm_3));
	s.push_back(CUTE(test_algorithm_4));
	return s;
}
Ejemplo n.º 6
0
cute::suite refCountObjectsSuite() {
	cute::suite s;

	s += CUTE(testWeakRefs);
	s += CUTE(testStrongRefs);

	return s;
}
void runSuite() {
    cute::suite s;
    //TODO add your test here
    s.push_back(CUTE(testValidInput));
    s.push_back(CUTE(testOutOfRange));
    s.push_back(CUTE(testSpecialCharacters));
    cute::ide_listener lis;
    cute::makeRunner(lis)(s, "The Suite");
}
Ejemplo n.º 8
0
cute::suite make_suite_test_TimeEntry()
{
	cute::suite s;
	s.push_back(CUTE(TimeEntry_changeStartTime));
	s.push_back(CUTE(TimeEntry_changeEndTime));
	s.push_back(CUTE(TimeEntry_setDeleted));
	return s;

}
Ejemplo n.º 9
0
cute::suite make_suite_Notifier_test()
{
    cute::suite s;
    s.push_back(CUTE(NotifyTaskUpdated));
    s.push_back(CUTE(NotifyTaskAdded));
    s.push_back(CUTE(NotifyTaskRemoved));
    s.push_back(CUTE(NotifyTaskParentChanged));
    return s;
}
Ejemplo n.º 10
0
cute::suite make_suite_bankAccountTest(){
	cute::suite s;
	s.push_back(CUTE(shouldAllowDeposit));
	s.push_back(CUTE(shouldAllowWithdraw));
	s.push_back(CUTE(shouldAllowWithdrawWithPenalty));
	s.push_back(CUTE(shouldCalculateInterest));
	s.push_back(CUTE(shouldCalculateInterestRate));
	return s;
}
cute::suite make_suite_partition_algorithms() {
	cute::suite s { };
	s.push_back(CUTE(test_algorithm_1));
	s.push_back(CUTE(test_algorithm_2));
	s.push_back(CUTE(test_algorithm_3));
	s.push_back(CUTE(test_algorithm_4));
	s.push_back(CUTE(test_algorithm_5));
	return s;
}
Ejemplo n.º 12
0
void runAllTests(int argc, char const *argv[]){
	cute::suite s;
	//TODO add your test here
	s.push_back(CUTE(shouldPrintSimpleTable));
	s.push_back(CUTE(shouldLookLikeLoopGenerated));
	cute::xml_file_opener xmlfile(argc,argv);
	cute::xml_listener<cute::ide_listener<> >  lis(xmlfile.out);
	cute::makeRunner(lis,argc,argv)(s, "AllTests");
}
Ejemplo n.º 13
0
void runAllTests(int argc, char const *argv[]){
	cute::suite s;
	//TODO add your test here
	s.push_back(CUTE(thisIsATest));
	s.push_back(CUTE(ReadTemperatureAndHunidityTest));
	cute::xml_file_opener xmlfile(argc,argv);
	cute::xml_listener<cute::ide_listener<> >  lis(xmlfile.out);
	cute::makeRunner(lis,argc,argv)(s, "AllTests");
}
Ejemplo n.º 14
0
cute::suite make_suite_test_SettingsAccessor()
{
	cute::suite s;
	s.push_back(CUTE(test_ShortFilterTimeAccessor));
	s.push_back(CUTE(test_IntAccessor));
	s.push_back(CUTE(test_BoolAccessor));
	s.push_back(CUTE(test_notification));
	return s;
}
Ejemplo n.º 15
0
void MiscTest::runSuite() {
	cute::suite s;
	s.push_back(CUTE(MiscTest::testparseArgs));
	s.push_back(CUTE(MiscTest::testtoLower));
	s.push_back(CUTE(MiscTest::testremoveChars));

	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "MiscTest");
}
Ejemplo n.º 16
0
void runSuite(){
	cute::suite s;
	//TODO add your test here
	s.push_back(CUTE(testEmptyVectorAtThrows));
	s.push_back(CUTE(testSquareRootNegativeThrows));
	s.push_back(CUTE(testForExceptionTryCatch));
	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "The Suite");
}
Ejemplo n.º 17
0
void ConfigEntryTest::runSuite() {
	cute::suite s;
	s.push_back(CUTE(ConfigEntryTest::testParseEntry));
	s.push_back(CUTE(ConfigEntryTest::testGetIntegerFormattedOptions));
	s.push_back(CUTE(ConfigEntryTest::testToIntegerMultipleValues));
	s.push_back(CUTE(ConfigEntryTest::testTokenizeMultipleValueString));
	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "ConfigEntryTest");
}
Ejemplo n.º 18
0
void runSuite()
{
	cute::suite s;
	s.push_back(CUTE(_dsp_test_));
	s.push_back(CUTE(_complex_test_));

	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "The Suite");
}
Ejemplo n.º 19
0
void runSuite(){
	cute::suite s;

	s.push_back(CUTE(sumTest));
	s.push_back(CUTE(subTest));
	s.push_back(CUTE(multiplyTest));

	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "The Suite");
}
Ejemplo n.º 20
0
bool runAllTests(int argc, char const *argv[]) {
	cute::suite s { };
	//TODO add your test here
	s.push_back(CUTE(test_two_is_prime));
	s.push_back(CUTE(test_print_primes_up_to_two));
	cute::xml_file_opener xmlfile(argc, argv);
	cute::xml_listener<cute::ide_listener<>> lis(xmlfile.out);
	auto runner { cute::makeRunner(lis, argc, argv) };
	bool success = runner(s, "AllTests");
	return success;
}
Ejemplo n.º 21
0
cute::suite make_suite_logging_suite(){
	cute::suite s;
	s.push_back(CUTE(testLogggerInstanciation));
    s.push_back(CUTE(testLoggerMessaging));
    s.push_back(CUTE(testLoggerFileBackend));

    cute::ide_listener lis;
    cute::makeRunner(lis)(s, "Logging and Messaging Suite");

    return s;
}
Ejemplo n.º 22
0
void runSuite(){
        cute::suite s;
        //TODO add your test here
        s.push_back(CUTE(factorialSimpleTest));
        s.push_back(CUTE(factorialArrayTest));
        s.push_back(CUTE(changeArrayTest));
        s.push_back(CUTE(calcSumArrayTest));
        s.push_back(CUTE(partitioningTest));
        ide_listener<> lis;
        makeRunner(lis)(s, "The Suite");
}
Ejemplo n.º 23
0
void runAllTests(int argc, char const *argv[]) {
	cute::suite s { };

	s.push_back(CUTE(constructorEmpty));
	s.push_back(CUTE(constructorInitList));
	s.push_back(CUTE(constructorCntValue));
	s.push_back(CUTE(constructorIterator));

	cute::xml_file_opener xmlfile(argc, argv);
	cute::xml_listener<cute::ide_listener<> > lis(xmlfile.out);
	cute::makeRunner(lis, argc, argv)(s, "AllTests");
}
void runAllTests(int argc, char const *argv[]){
	cute::suite s;
	//TODO add your test here
	s.push_back(CUTE(testFizzBuzzSequenceUpTo16));
	s.push_back(CUTE(fizzBuzzSingle1));
	s.push_back(CUTE(FizzBuzzSingleFizz));
	s.push_back(CUTE(FizzBuzzSingleBuzz));
	s.push_back(CUTE(FizzBuzzSequenceToBuzz));
	cute::xml_file_opener xmlfile(argc,argv);
	cute::xml_listener<cute::ide_listener<> >  lis(xmlfile.out);
	cute::makeRunner(lis,argc,argv)(s, "AllTests");
}
Ejemplo n.º 25
0
void runAllTests(int argc, char const *argv[]){
	cute::suite s;
	//TODO add your test here



	s.push_back(CUTE(testInitialValue));
	s.push_back(CUTE(testSpecifiedStartValue));
	s.push_back(CUTE(testAddValue));

	cute::xml_file_opener xmlfile(argc,argv);
	cute::xml_listener<cute::ide_listener<> >  lis(xmlfile.out);
	cute::makeRunner(lis,argc,argv)(s, "AllTests");
}
cute::suite make_suite_find_algorithms() {
	cute::suite s { };
	s.push_back(CUTE(test_algorithm_1));
	s.push_back(CUTE(test_algorithm_2));
	s.push_back(CUTE(test_algorithm_3));
	s.push_back(CUTE(test_algorithm_4));
	s.push_back(CUTE(test_algorithm_5));
	s.push_back(CUTE(test_algorithm_6));
	s.push_back(CUTE(test_algorithm_7));
	s.push_back(CUTE(test_algorithm_8));
	s.push_back(CUTE(test_algorithm_9));
	s.push_back(CUTE(test_algorithm_10));
	return s;
}
Ejemplo n.º 27
0
void test_xml_suite(){
	std::ostringstream out;
	{
		MAKE_RUNNER_RUN_TO_OUT;
		cute::suite suite;
		suite.push_back(CUTE(test_failure));
		suite.push_back(CUTE(test_emptyrun));
		run(suite,"xml_test_suite");
	}
	ASSERT_EQUAL("<testsuites>\n\t<testsuite name=\"xml_test_suite\" tests=\"2\">\n"
			"\t\t<testcase classname=\"xml_test_suite\" name=\"test_failure\">\n"
			"\t\t\t<failure message=\"dummy.cpp:42 must fail\">\nmust fail\n\t\t\t</failure>\n"
			"\t\t</testcase>\n"
			"\t\t<testcase classname=\"xml_test_suite\" name=\"test_emptyrun\"/>\n"
			"\t</testsuite>\n</testsuites>\n",out.str());
}
Ejemplo n.º 28
0
void runAllTests(int argc, char const *argv[]) {
	cute::suite s;
	s.push_back(CUTE(thisIsATest));
	cute::xml_file_opener xmlfile(argc, argv);
	cute::xml_listener<cute::ide_listener<> > lis(xmlfile.out);
	cute::makeRunner(lis, argc, argv)(s, "AllTests");
}
Ejemplo n.º 29
0
void runSuite(){
	cute::suite s;
	//TODO add your test here
	s.push_back(CUTE(Tester));
	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "The Suite");
}
void SequencerChannelsTest::runSuite() {
	cute::suite s;
	s.push_back(CUTE(SequencerChannelsTest::testSequencerChannels));

	cute::ide_listener lis;
	cute::makeRunner(lis)(s, "SequencerChannelsTest");
}