19 Cerr <<
"test_Ref" << finl;
21 OBS_PTR(DoubleVect) xx;
23 OBS_PTR(DoubleVect) yy(x);
24 OBS_PTR(DoubleVect) zz(yy);
27 assert(xx->size() == x.size());
28 assert(yy->size() == zz->size());
30 (
static_cast<DoubleVect&
>(xx))[2]=1;
33 return zz->operator bool();
42 Cerr <<
"test_Deriv" << finl;
44 OWN_PTR(DoubleVect) xx;
46 OWN_PTR(DoubleVect) yy(x);
47 OWN_PTR(DoubleVect) zz(yy);
50 assert(xx->size() == x.size());
51 assert(yy->size() == zz->size());
53 (
static_cast<DoubleVect&
>(xx))[2]=1;
56 return zz->operator bool();
65 Cerr <<
"test_List" << finl;
67 la_liste.add(
"Chien");
71 LIST(
Nom) copie(la_liste);
74 Cerr <<
"The two lists are identical" << finl;
75 copie.add_if_not(
Nom(
"Chien"));
76 copie.add_if_not(
Nom(
"Chiens"));
77 copie[
"Chiens"]=
Nom(
"Chats");
82 Cerr <<
"The two lists are different" << finl;
92 Cerr <<
"test_Vect" << finl;
96 assert( xx.search(x) == 1);
98 les_mots[0]=
Motcle(
"Zero");
100 les_mots[2]=
Motcle(
"Deux");
101 assert( les_mots.contient(
Motcle(
"Un")) );
102 assert( les_mots.search(
Motcle(
"Deux")) == 2);
103 assert( les_mots.search(
Motcle(
"Un")) == 1 );
104 assert( les_mots.search(
Motcle(
"Zero")) == 0);
114 Cerr <<
"test_DoubleVect" << finl;
123 Cerr <<
"test_IntVect" << finl;
Une chaine de caractere (Nom) en majuscules.
Un tableau d'objets de la classe Motcle.
class Nom Une chaine de caractere pour nommer les objets de TRUST
const Nom & le_nom() const override
Renvoie *this;.