added an error message if there are to many test case lines

This commit is contained in:
hneemann 2017-04-14 14:14:59 +02:00
parent c42eb7b593
commit f88a70bc47
3 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,8 @@ public class Parser {
tok.consume();
expect(Tokenizer.Token.OPEN);
int count = (int) parseInt();
if (count > 1 << 16)
throw new ParserException(Lang.get("err_toManyTestEntries"));
expect(Tokenizer.Token.CLOSE);
parseForLine(count);
} else {

View File

@ -469,6 +469,7 @@ Es sind nur {1} Variablen erlaubt, es wurden jedoch {2} gefunden.</string>
<string name="err_recursiveNestingAt_N0">Die Schaltung {0} bindet sich selbst ein!</string>
<string name="err_minimizationFailed">Das Ergebnis der Minimierung ist nicht korrekt!
Sind evtl. die Namen der Variablen nicht eindeutig?</string>
<string name="err_toManyTestEntries">Zu viele Einträge in der Testdatenmatrix.</string>
<string name="key_AddrBits">Adress-Bits</string>
<string name="key_AddrBits_tt">Anzahl der Adress-Bits die verwendet werden.</string>

View File

@ -456,6 +456,7 @@ allowed are {1} variables but {2} are found.</string>
<string name="err_recursiveNestingAt_N0">The circuit {0} imports itself!</string>
<string name="err_minimizationFailed">The result of the minimization is not correct!
The names of the variables may not be unique.</string>
<string name="err_toManyTestEntries">To many entries in the test data matrix.</string>
<string name="key_AddrBits">Address Bits</string>
<string name="key_AddrBits_tt">Number of address bits used.</string>