update
This commit is contained in:
18
DEV.2.3/TP/TP1/ex1/Ma-Touille-pour-les-tests.txt
Normal file
18
DEV.2.3/TP/TP1/ex1/Ma-Touille-pour-les-tests.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
[srivasta@salle225-13 TP1]$ java MonInt
|
||||
3 trois
|
||||
4 quatre
|
||||
9 neuf
|
||||
3 (neuf divisé par trois)
|
||||
0 (trois divisé par quatre)
|
||||
java.lang.IllegalStateException: Comme disait Sacha Guitry, je ne suis pas superstitieux mais on ne sait jamais.
|
||||
java.lang.ArithmeticException: / by zero
|
||||
java.lang.NullPointerException: la classe denominateur ne peut pas être null
|
||||
|
||||
[srivasta@salle225-13 TP1]$ java -ea MonInt
|
||||
3 trois
|
||||
4 quatre
|
||||
9 neuf
|
||||
3 (neuf divisé par trois)
|
||||
Exception in thread "main" java.lang.AssertionError
|
||||
at MonInt.divise(MonInt.java:36)
|
||||
at MonInt.main(MonInt.java:82)
|
Reference in New Issue
Block a user