0

¿Alguien para probar mi código?

Necesito que probéis todos los tipos de input posibles para este código: https://code.sololearn.com/clRLvIER4ya6/?ref=app

17th Sep 2022, 9:40 AM
Oriol
11 Antworten
0
Para este tipo de prueba, utilice testes unitarios. Más eficientes que qualquer persona.
18th Sep 2022, 1:32 AM
Emerson Prado
Emerson Prado - avatar
0
El que?
18th Sep 2022, 3:49 PM
Oriol
0
Oriol Yo no soy hablante nativo de espanol (ni mi teclado...). Puedes hacer la pregunta más clara?
18th Sep 2022, 5:07 PM
Emerson Prado
Emerson Prado - avatar
0
Que prueba.
18th Sep 2022, 5:16 PM
Oriol
0
what test
18th Sep 2022, 5:18 PM
Oriol
0
"Probar mi código... todos los tipos de input posibles". Eso va muy mejor con testes unitarios que con personas testando.
18th Sep 2022, 5:31 PM
Emerson Prado
Emerson Prado - avatar
0
I don't understand. Do you soeakaenglish better than spanish? O el español mejor que el inglés?
19th Sep 2022, 7:07 PM
Oriol
0
Sure. Do you want someone to test your code with all possible input types? If yes, asking people to do that is waste of time (for you and for other people). Massive tasks are always better done by software - and code testing is no different at all. Go for unit tests. I guess you can unit test Ruby code with rspec. Just read about unit tests, rspec and, maybe, Rake. You'll go quite faster and better than I can explain you.
22nd Sep 2022, 11:56 PM
Emerson Prado
Emerson Prado - avatar
0
How do I do unit tests?
2nd Nov 2022, 7:58 PM
Oriol
0
Just follow the hint I gave you:: read about Rake, rspec and the like. In short: you write test code with functions which call your code functions with some sets of inputs and check (assert) the outputs are correct. And so on for classes and methods. This way, tests get way more flexible and cheap to run.
3rd Nov 2022, 4:03 AM
Emerson Prado
Emerson Prado - avatar
0
okay
7th Nov 2022, 6:19 PM
Oriol