Apply formating to all files. CLeanup
This commit is contained in:
parent
b4ae5dde77
commit
91fb72bd49
928 changed files with 14515 additions and 21479 deletions
|
|
@ -1,24 +1,24 @@
|
|||
|
||||
#include "Tests.hpp"
|
||||
|
||||
#include "Strings.hpp"
|
||||
|
||||
void testStringLogic();
|
||||
void testStrings();
|
||||
void testLogging();
|
||||
|
||||
int main() {
|
||||
|
||||
tp::ModuleManifest* deps[] = { &tp::gModuleStrings, &tp::gModuleUtils, nullptr };
|
||||
tp::ModuleManifest testModule("StringsTest", nullptr, nullptr, deps);
|
||||
|
||||
if (!testModule.initialize()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
testStringLogic();
|
||||
testStrings();
|
||||
testLogging();
|
||||
|
||||
testModule.deinitialize();
|
||||
|
||||
#include "Tests.hpp"
|
||||
|
||||
#include "Strings.hpp"
|
||||
|
||||
void testStringLogic();
|
||||
void testStrings();
|
||||
void testLogging();
|
||||
|
||||
int main() {
|
||||
|
||||
tp::ModuleManifest* deps[] = { &tp::gModuleStrings, &tp::gModuleUtils, nullptr };
|
||||
tp::ModuleManifest testModule("StringsTest", nullptr, nullptr, deps);
|
||||
|
||||
if (!testModule.initialize()) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
testStringLogic();
|
||||
testStrings();
|
||||
testLogging();
|
||||
|
||||
testModule.deinitialize();
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
#include "Testing.hpp"
|
||||
#include "Allocators.hpp"
|
||||
#include "Allocators.hpp"
|
||||
#include "Testing.hpp"
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
|
||||
#include "Tests.hpp"
|
||||
#include "Logging.hpp"
|
||||
#include "Tests.hpp"
|
||||
|
||||
using namespace tp;
|
||||
|
||||
TEST_DEF(Logging) {
|
||||
|
||||
}
|
||||
TEST_DEF(Logging) {}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#include "NewPlacement.hpp"
|
||||
|
||||
#include "Tests.hpp"
|
||||
#include "Strings.hpp"
|
||||
#include "Tests.hpp"
|
||||
|
||||
using namespace tp;
|
||||
|
||||
|
|
@ -12,9 +12,7 @@ struct TestStruct {
|
|||
TEST_DEF_STATIC(Addition) {
|
||||
String str1 = "abc";
|
||||
String str2 = "def";
|
||||
{
|
||||
str1 + str2;
|
||||
}
|
||||
{ str1 + str2; }
|
||||
{
|
||||
TEST(str1 + str2 == "abcdef");
|
||||
TEST(str1 + "aaaccc" == "abcaaaccc");
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
#include "NewPlacement.hpp"
|
||||
|
||||
#include "Tests.hpp"
|
||||
#include "StringLogic.hpp"
|
||||
#include "Tests.hpp"
|
||||
|
||||
using namespace tp;
|
||||
|
||||
typedef StringLogic<char> Logic;
|
||||
|
||||
|
||||
TEST_DEF(isNewLineChar) {
|
||||
// Test isNewLineChar function
|
||||
TEST(Logic::isNewLineChar('\n'));
|
||||
|
|
@ -107,7 +106,6 @@ TEST_DEF(removeLogicGood) {
|
|||
TEST(Logic::isEqualLogic(removed, result));
|
||||
}
|
||||
|
||||
|
||||
TEST_DEF(insertLogic) {
|
||||
// Test insertLogic function
|
||||
testinsertLogicGood();
|
||||
|
|
@ -232,7 +230,6 @@ TEST_DEF(calcLineOffsets) {
|
|||
TEST(offsets[6] == 16);
|
||||
}
|
||||
|
||||
|
||||
TEST_DEF(StringLogic) {
|
||||
testisNewLineChar();
|
||||
testisEndChar();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue