Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mini projet string #3

Open
obonaventure opened this issue Feb 26, 2018 · 2 comments
Open

Mini projet string #3

obonaventure opened this issue Feb 26, 2018 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@obonaventure
Copy link
Contributor

  • Certains étudiants ont passé pas mal de temps à cette séance sur [S2] strlen, strcat et strcasecmp, il est manifestement un peu buggé (le feedback global bug par moments, apparemment quand il y a segfault). Il faudrait peut-être alléger un peu l'énoncé (bcp bloquaient sur le fait que strcasecmp devaient aussi comparer par rapport à l'ordre alphabétique, on pourrait remplacer ça par un simple retour binaire).
@obonaventure obonaventure added the bug Something isn't working label Feb 26, 2018
@obonaventure
Copy link
Contributor Author

J'ai juste eu un retour d'un bug étrange d'un étudiant. Pour l'exercice [S2] strlen, strcat et strcasecmp, l'étudiant "Julien Calbert" utilise ce code pour strlen:

int i = 0;
while(str[i] != 0)
{
i++;
}
return i;

Ca me semble correct, mais Inginious renvoie An intenal error occurred. Please retry later. If the error persists, send an email to the course administrator. [Submission #5a8e8263aff4146a5a4cb070].

@nrybowski
Copy link
Member

Il s'agit effectivement d'une ancienne tâche qui n'utilise pas le framework CTester, il faudrait donc la modifier en ce sens. Ceci explique le comportement anormal lors de segfaults.

A tout hasard, il existe un exercice similaire et implémenté avec CTester. Il s'agit de "my_strlen" sur Github et de "[S2] My strlen" sur Inginious.

Il serait peut être intéressant de diviser cette grosse tâche en 3 ? Il ne resterait donc plus que strcat et strcasecmp à modifier.

@nrybowski nrybowski added the enhancement New feature or request label Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants