d07 ajouts tests avec fixed et char dans ex01 et ex02

This commit is contained in:
Hugo LAMY
2022-03-18 14:26:15 +01:00
parent b30fdff668
commit 726bd388dd
18 changed files with 1098 additions and 31 deletions

View File

@@ -5,8 +5,10 @@
#include "Print.hpp"
#include "ToUpper.hpp"
#include "Decrement.hpp"
#include "ClassTest.hpp"
#include "Fixed.hpp"
#define N_TEST "2"
#define N_TEST "4"
int main() {
int i = 0;
@@ -38,6 +40,22 @@ int main() {
::Iter(arr, len, Print<int>);
}
std::cout << B_YELLOW "\n[" << ++i << "/" N_TEST "] "
<< "tests class :" RESET "\n";
{
ClassTest tab[5];
::Iter(tab, 5, Print<ClassTest>);
}
std::cout << B_YELLOW "\n[" << ++i << "/" N_TEST "] "
<< "tests fixed :" RESET "\n";
{
Fixed f[5];
::Iter(f, 5, Print<Fixed>);
}
return 0;
}