|
@@ -1,8 +1,11 @@
|
|
|
-#include "Vector.h"
|
|
|
#include <iostream>
|
|
|
#include <memory>
|
|
|
#include <vector>
|
|
|
|
|
|
+#include "Vector.h"
|
|
|
+#include "gaming-core/utils/ArrayList.h"
|
|
|
+#include "gaming-core/utils/Logger.h"
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -164,6 +167,21 @@ void test() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void logTest(Logger::Level level) {
|
|
|
+ std::cout << "--------------------------\n";
|
|
|
+ Logger::level = level;
|
|
|
+
|
|
|
+ ArrayList<int, 5> list;
|
|
|
+ list.add(1);
|
|
|
+ list.add(2);
|
|
|
+ list.add(3);
|
|
|
+
|
|
|
+ Logger::debug(StringBuffer<50>("Bla Bla ").append(list));
|
|
|
+ Logger::info(StringBuffer<50>("Bla Bla ").append(list));
|
|
|
+ Logger::warn(StringBuffer<50>("Bla Bla ").append(list));
|
|
|
+ Logger::error(StringBuffer<50>("Bla Bla ").append(list));
|
|
|
+}
|
|
|
+
|
|
|
int main() {
|
|
|
test<Vector<A>>();
|
|
|
test();
|
|
@@ -174,4 +192,9 @@ int main() {
|
|
|
|
|
|
Vector<std::unique_ptr<A>> test2;
|
|
|
test2.resize(5);
|
|
|
+
|
|
|
+ logTest(Logger::DEBUG);
|
|
|
+ logTest(Logger::INFO);
|
|
|
+ logTest(Logger::WARNING);
|
|
|
+ logTest(Logger::ERROR);
|
|
|
}
|