Skip to content

¿Cómo se usan los tests? #8

Discussion options

You must be logged in to vote

Hola! si tienes los tests en la carpeta ./tests entonces debes usar el ejecutable compilado con ./rollercoaster tests/rollercoaster/easy-1/input.txt output.txt. No importa a donde escribas el output, pero lo importante es que no sobreescritas el archivo output.txt entregado en los tests, porque ese es el output esperado en ese test.
Una vez hayas guardado tu archivo output entonces puedes usar diff output.txt tests/rollercoaster/easy-1/input para saber la diferencia entre los archivos. Si hay alguna diferencia entonces este comando te va a indicar las lineas, si no hay diferencia entonces no va a retornar nada.

Si no te gusta diff entonces tambien puedes utilizar la función de comparar ar…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@martina-abello
Comment options

@JavierLarre
Comment options

@martina-abello
Comment options

@vicentekrebs
Comment options

@JavierLarre
Comment options

Answer selected by tomastrivino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants