d07 ajouts tests avec fixed et char dans ex01 et ex02
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user