Apply formating to all files. CLeanup
This commit is contained in:
parent
b4ae5dde77
commit
91fb72bd49
928 changed files with 14515 additions and 21479 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "Testing.hpp"
|
||||
#include "Allocators.hpp"
|
||||
#include "CommandLine.hpp"
|
||||
#include "Testing.hpp"
|
||||
|
||||
void testCommandLine();
|
||||
void testInterpreter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue