diff --git a/rapport/Rapport_EdouardParis.tex b/rapport/Rapport_EdouardParis.tex index 57271b5ccff49598015d040125ee051e477b7dc7..196d81157fe3892beaf9c40459998003d846b4f9 100644 --- a/rapport/Rapport_EdouardParis.tex +++ b/rapport/Rapport_EdouardParis.tex @@ -45,6 +45,7 @@ On peut en déduire l'algorithme suivant par la méthode de Newton: \end{algorithm} \subsection{Question 3} + \subsection{Question 4} \subsection{Qestion 5} \includegraphics[width=\textwidth]{img/question_5.png} diff --git a/src/test.sh b/src/test.sh new file mode 100755 index 0000000000000000000000000000000000000000..2b1de820b6ef2498c14386dfe5e5398827ea2b5a --- /dev/null +++ b/src/test.sh @@ -0,0 +1,16 @@ +#!/bin/bash +test () { + var=`./bin/question_3 $1`; + if [ $var == $2 ]; then + echo "SUCCESS $1 $var" + else + echo "FAIL $1 EXPECTING $2 GET $var" + fi +} + +test 10 3 +test 48 6 +test 49 7 +test 50 7 +test 100 10 +test 1000 31