Apply formating to all files. CLeanup

This commit is contained in:
IlyaShurupov 2023-10-22 17:07:28 +03:00
parent 43e374f269
commit 744c01c5d0
928 changed files with 14515 additions and 21480 deletions

View file

@ -6,10 +6,10 @@ using namespace tp;
static CommandLine createCmdLine() {
CommandLine cmd({
{ "bool", CommandLine::Arg::BOOL },
{ "int", CommandLine::Arg::INT },
{ "string", CommandLine::Arg::STR },
{ "float", CommandLine::Arg::FLOAT },
{ "bool", CommandLine::Arg::BOOL },
{ "int", CommandLine::Arg::INT },
{ "string", CommandLine::Arg::STR },
{ "float", CommandLine::Arg::FLOAT },
});
return cmd;
}
@ -20,6 +20,4 @@ TEST_DEF_STATIC(Simple) {
cmd.parse(4, args, true, 0);
}
TEST_DEF(CommandLine) {
testSimple();
}
TEST_DEF(CommandLine) { testSimple(); }

View file

@ -1,7 +1,7 @@
#include "NewPlacement.hpp"
#include "Tests.hpp"
#include "CmdLineInterpreter.hpp"
#include "Tests.hpp"
using namespace tp;
@ -14,7 +14,6 @@ TEST_DEF_STATIC(Simple) {
printf("Test Val - %i\n", (int) args.getBool("bool"));
return false;
}
};
TestStruct self;
@ -32,5 +31,5 @@ TEST_DEF_STATIC(Simple) {
}
TEST_DEF(Interpreter) {
//testSimple();
// testSimple();
}

View file

@ -1,18 +1,18 @@
#include "NewPlacement.hpp"
#include "Tests.hpp"
int main() {
tp::ModuleManifest* deps[] = { &tp::gModuleUtils, &tp::gModuleTokenizer, nullptr };
tp::ModuleManifest testModule("CommandLineTest", nullptr, nullptr, deps);
if (!testModule.initialize()) {
return 1;
}
// testCommandLine();
testInterpreter();
testModule.deinitialize();
}
#include "NewPlacement.hpp"
#include "Tests.hpp"
int main() {
tp::ModuleManifest* deps[] = { &tp::gModuleUtils, &tp::gModuleTokenizer, nullptr };
tp::ModuleManifest testModule("CommandLineTest", nullptr, nullptr, deps);
if (!testModule.initialize()) {
return 1;
}
// testCommandLine();
testInterpreter();
testModule.deinitialize();
}

View file

@ -1,8 +1,8 @@
#pragma once
#include "Testing.hpp"
#include "Allocators.hpp"
#include "CommandLine.hpp"
#include "Testing.hpp"
void testCommandLine();
void testInterpreter();