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

fprime test tries invalid inputs when the subject explicitly says the input will always be valid #115

Open
Vinni-Cedraz opened this issue Jul 30, 2023 · 0 comments

Comments

@Vinni-Cedraz
Copy link

subject:

The input, when there is one, will be valid.

also the subject:

Write a program that takes **A POSITIVE INT** and displays its prime factors on the...

If the program should take a positive int and the input to the program will always be valid when being tested by Moulinette, then the 42_EXAM simulator should never test fprime with a negative number.

trace for fprime:

----------------8<-------------[ START TEST 
        💻 TEST
./a.out "-52" 
        🔎 YOUR OUTPUT:
   ❌ TIMEOUT
----------------8<------------- END TEST 

As you can see, the simulator is testing the program with an invalid input and expecting a specific result when the subject explicitly says that the program will not be tested with invalid inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant