Abstract non Polymorphyc Matrix:
|
Prueba la clase rational<INT>
.
More...
Public Member Functions | |
virtual void | setUp () |
Establece el ambiente de prueba. | |
void | super_numerotes (bool sl=false) |
Define si se corren o no las pruebas con super-numerotototes. | |
void | super_lerdo (bool sl=false) |
Define si se corren las pruebas que duran mucho. | |
bool | run () |
Método principal de la prueba. | |
void | rat_tst () |
Antiguo programa de prueba para la clase rational<INT> . | |
void | run_rest () |
Método complementario de prueba. | |
void | test_quiebra_Narvaja () |
Datos de prueba que sirven para quebrar la implementación BigNum de Narvaja. | |
void | test_constructor () |
Datos de prueba para los constructores de la clase rational<INT> . | |
void | test_destructor () |
Datos de prueba para el destructor de la clase rational<INT> . | |
void | test_set () |
Datos de prueba para rational<INT>::set() . | |
void | test_op_equal () |
Datos de prueba para rational<INT>::operator=() . | |
void | test_num_den () |
Datos de prueba para rational<INT>::num() y rational<INT>::den() . | |
void | test_swap () |
Datos de prueba para rational<INT>::swap() . | |
void | test_op_add_equal () |
Datos de prueba para rational<INT>::operator +=() y rational<INT>::operator -=() . | |
void | test_op_add () |
Datos de prueba para rational<INT>::operator +() y rational<INT>::operator -() . | |
void | test_op_mult_equal () |
Datos de prueba para rational<INT>::operator *=() y rational<INT>::operator /=() . | |
void | test_op_mult () |
Datos de prueba para rational<INT>::operator *() y rational<INT>::operator /() . | |
void | test_op_minus () |
Datos de prueba para rational<INT>::operator -() . | |
void | test_fromString () |
Datos de prueba para rational<INT>::test_fromString() . | |
void | test_op_comp () |
Datos de prueba para todos los operadores de comparación de rational<INT> . | |
void | test_op_in () |
Datos de prueba para operator>>() . | |
void | test_op_out () |
Datos de prueba para operator<<() . | |
void | test_simplify () |
Datos de prueba para rational<INT>::test_simplify() . | |
void | test_check_ok () |
Datos de prueba para check_ok( const rational<INT>& ) . | |
void | test_mcd () |
Datos de prueba para la función mcd() . | |
void | test_op_cpp () |
Datos de prueba para los incrementadores c++ y --c . | |
Protected Attributes | |
rational< INT > | m_half |
rational< INT > | m_quarter |
rational< INT > | m_one |
rational< INT > | m_half_neg |
rational< INT > | m_quarter_neg |
rational< INT > | m_one_neg |
rational< INT > | m_sep |
rational< INT > | m_sep_neg |
bool | m_super_lerdo |
Indica si hay que probar con numerotototes. | |
bool | m_super_numerotes |
Indica si se corren las pruebas que duran mucho. |
Prueba la clase rational<INT>
.
Definition at line 33 of file test_rational.cpp.
void test_rational< INT >::setUp | ( | ) | [virtual] |
Establece el ambiente de prueba.
Definition at line 108 of file test_rational.cpp.
void test_rational< INT >::super_numerotes | ( | bool | sl = false | ) | [inline] |
Define si se corren o no las pruebas con super-numerotototes.
Definition at line 43 of file test_rational.cpp.
void test_rational< INT >::super_lerdo | ( | bool | sl = false | ) | [inline] |
Define si se corren las pruebas que duran mucho.
Definition at line 47 of file test_rational.cpp.
bool test_rational< INT >::run | ( | ) |
Método principal de la prueba.
setUp()
Definition at line 81 of file test_rational.cpp.
void test_rational< INT >::rat_tst | ( | ) |
Antiguo programa de prueba para la clase rational<INT>
.
Definition at line 458 of file test_rational.cpp.
void test_rational< INT >::run_rest | ( | ) |
Método complementario de prueba.
run()
. Definition at line 575 of file test_rational.cpp.
void test_rational< INT >::test_quiebra_Narvaja | ( | ) |
Datos de prueba que sirven para quebrar la implementación BigNum
de Narvaja.
Definition at line 131 of file test_rational.cpp.
void test_rational< INT >::test_constructor | ( | ) |
Datos de prueba para los constructores de la clase rational<INT>
.
Definition at line 166 of file test_rational.cpp.
void test_rational< INT >::test_destructor | ( | ) |
Datos de prueba para el destructor de la clase rational<INT>
.
Definition at line 181 of file test_rational.cpp.
void test_rational< INT >::test_set | ( | ) |
Datos de prueba para rational<INT>::set()
.
Definition at line 187 of file test_rational.cpp.
void test_rational< INT >::test_op_equal | ( | ) |
Datos de prueba para rational<INT>::operator=()
.
Definition at line 213 of file test_rational.cpp.
void test_rational< INT >::test_num_den | ( | ) |
Datos de prueba para rational<INT>::num()
y rational<INT>::den()
.
Definition at line 200 of file test_rational.cpp.
void test_rational< INT >::test_swap | ( | ) |
Datos de prueba para rational<INT>::swap()
.
Definition at line 226 of file test_rational.cpp.
void test_rational< INT >::test_op_add_equal | ( | ) |
Datos de prueba para rational<INT>::operator +=()
y rational<INT>::operator -=()
.
Definition at line 238 of file test_rational.cpp.
void test_rational< INT >::test_op_add | ( | ) |
Datos de prueba para rational<INT>::operator +()
y rational<INT>::operator -()
.
Definition at line 253 of file test_rational.cpp.
void test_rational< INT >::test_op_mult_equal | ( | ) |
Datos de prueba para rational<INT>::operator *=()
y rational<INT>::operator /=()
.
Definition at line 268 of file test_rational.cpp.
void test_rational< INT >::test_op_mult | ( | ) |
Datos de prueba para rational<INT>::operator *()
y rational<INT>::operator /()
.
Definition at line 283 of file test_rational.cpp.
void test_rational< INT >::test_op_minus | ( | ) |
Datos de prueba para rational<INT>::operator -()
.
Definition at line 298 of file test_rational.cpp.
void test_rational< INT >::test_fromString | ( | ) |
Datos de prueba para rational<INT>::test_fromString()
.
Definition at line 311 of file test_rational.cpp.
void test_rational< INT >::test_op_comp | ( | ) |
Datos de prueba para todos los operadores de comparación de rational<INT>
.
Definition at line 355 of file test_rational.cpp.
void test_rational< INT >::test_op_in | ( | ) |
Datos de prueba para operator>>()
.
Definition at line 393 of file test_rational.cpp.
void test_rational< INT >::test_op_out | ( | ) |
Datos de prueba para operator<<()
.
Definition at line 371 of file test_rational.cpp.
void test_rational< INT >::test_simplify | ( | ) |
Datos de prueba para rational<INT>::test_simplify()
.
Definition at line 325 of file test_rational.cpp.
void test_rational< INT >::test_check_ok | ( | ) |
Datos de prueba para check_ok( const rational<INT>& )
.
Definition at line 340 of file test_rational.cpp.
void test_rational< INT >::test_mcd | ( | ) |
Datos de prueba para la función mcd()
.
Definition at line 409 of file test_rational.cpp.
void test_rational< INT >::test_op_cpp | ( | ) |
Datos de prueba para los incrementadores c++
y --c
.
Definition at line 421 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_half [protected] |
Definition at line 35 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_quarter [protected] |
Definition at line 35 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_one [protected] |
Definition at line 35 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_half_neg [protected] |
Definition at line 36 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_quarter_neg [protected] |
Definition at line 36 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_one_neg [protected] |
Definition at line 36 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_sep [protected] |
Definition at line 37 of file test_rational.cpp.
rational<INT> test_rational< INT >::m_sep_neg [protected] |
Definition at line 37 of file test_rational.cpp.
bool test_rational< INT >::m_super_lerdo [protected] |
Indica si hay que probar con numerotototes.
Definition at line 38 of file test_rational.cpp.
bool test_rational< INT >::m_super_numerotes [protected] |
Indica si se corren las pruebas que duran mucho.
Definition at line 39 of file test_rational.cpp.