mirror of
https://github.com/LucasVbr/interpreteur-lir.git
synced 2026-12-05 18:40:49 +00:00
Prototype 2.0
This commit is contained in:
@@ -6,6 +6,7 @@ package interpreteurlir.donnees.tests;
|
||||
|
||||
import static info1.outils.glg.Assertions.*;
|
||||
|
||||
import interpreteurlir.InterpreteurException;
|
||||
import interpreteurlir.donnees.Identificateur;
|
||||
|
||||
/**
|
||||
@@ -43,9 +44,9 @@ public class TestIdentificateur {
|
||||
null,
|
||||
"",
|
||||
|
||||
// Fait au maximum 24 caractères
|
||||
// Fait au maximum 25 caractères
|
||||
"$jeSuisUnTresLongIdentificateur", // 30 char
|
||||
"$jeSuisUnTresLongIdentific",
|
||||
"$jeSuisUnTresLongIdentifica",
|
||||
|
||||
// Espaces
|
||||
"id 3a",
|
||||
@@ -67,7 +68,7 @@ public class TestIdentificateur {
|
||||
try {
|
||||
new Identificateur(INVALIDE[noJeu]);
|
||||
echec();
|
||||
} catch (IllegalArgumentException lancee) {
|
||||
} catch (InterpreteurException lancee) {
|
||||
// Test OK
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user