‘Académie Franc C'Aise’ is the ‘functional tester’ made in ‘Python’ for the ‘Franc C’, and uses ‘Larousse’ standard library.
You will find in every single ‘Larousse’ source code function: - The same function written in ‘C’. - A main function in ‘Franc C’ which calls the function in ‘Franc C’ with various parameter, in the ‘test’ folder. - A main function in ‘C’ which calls the function in ‘C’ with the same parameters, in the ‘test’ folder.
‘Académie Franc C'Aise’ compiles both the ‘C’ and ‘Franc C’ version using ‘gcc’ and ‘fcvm’. It then runs both versions, and check whether their inputs are the same as a way to test the language. It also displays how much time each step took (Compilation, Execution) for both languages then finally shows the time difference between those.
‘Franc C’ is in most cases faster to compile than ‘C’. However, ‘C’ is almost always faster in execution time than ‘Franc C’.
At the end of the program, ‘Académie Franc C'Aise’ displays how many tests passed out of how many were run. It then exits with a failure if not all tests passed.