practicando test en c++ de manera sencilla

Como estoy aprendiendo con un lenguaje de programación y ya cuento con algunas bases sólidas decidí probar algo que me llamó la atención y es realizar test unitarios dentro del código.
Los tres unitarios no son nada más que uno esté sencillos que esperan que dicha función retorne un resultado esperado por ejemplo una suma debe retornar un valor numérico como salida y no una cadena de texto.

Since I'm learning a programming language and already have some solid foundations, I decided to try something that caught my attention: writing unit tests within the code. The three unit tests are simply simple statements that expect a function to return a specific result. For example, a sum should return a numerical value as output, not a string.
) Como esto de los tés los empecé a ver hoy mismo no me puse a hacer test muy complicados si no sencillos que manejan casos exitosos y los errores simplemente lo muestra por la terminal.
Since I only started looking at these tests today, I didn't do very complicated tests, but simple ones that handle successful cases and simply show errors through the terminal.
) Si más que decir voy a estar compartiendo mis avances a través del blog.
Without further ado, I will be sharing my progress through the blog.
)


0
0
0.000
1 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. 
 

0
0
0.000