Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test bloqué lorsqu'une valeur est trop haute pour l'électricité #2139

Open
clementcolne opened this issue Oct 31, 2023 · 1 comment
Open
Labels

Comments

@clementcolne
Copy link

clementcolne commented Oct 31, 2023

Bonjour,

En faisant mon test, je me suis amusé à voir la réaction du site si ma consommation électrique était absurdement haute, mais une fois une certaine valeur convertie en exponentielle, le site bloque sur une erreur, et impossible de reprendre le test.
Je ne trouve également pas comment lancer un nouveau test de 0

Voici la stack de l'erreur dans la console :

SyntaxError:
[ Erreur syntaxique ]
➡️ Dans la règle "logement . électricité . consommation . $SITUATION"
✖️ 7.71513353115727e+21 n'est pas une expression valide
Syntax error at line 1 col 18:

1 7.71513353115727e+21
^
Unexpected additionSubstraction token: "+". Instead, I was expecting to see one of the following:

A "." based on:
UnitNumerator$ebnf$1$subexpression$1 → ● "." Words
UnitNumerator$ebnf$1 → ● UnitNumerator$ebnf$1$subexpression$1
UnitNumerator → Words ● UnitNumerator$ebnf$1
Unit$ebnf$1 → ● UnitNumerator
Unit → ● Unit$ebnf$1 Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A space token based on:
Words$ebnf$1$subexpression$1$ebnf$1 → ● %space
Words$ebnf$1$subexpression$1 → ● Words$ebnf$1$subexpression$1$ebnf$1 WordOrNumber
Words$ebnf$1 → ● Words$ebnf$1$subexpression$1
Words → WordOrKeyword ● Words$ebnf$1
UnitNumerator → ● Words UnitNumerator$ebnf$1
Unit$ebnf$1 → ● UnitNumerator
Unit → ● Unit$ebnf$1 Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A number token based on:
WordOrNumber → ● %number
Words$ebnf$1$subexpression$1 → Words$ebnf$1$subexpression$1$ebnf$1 ● WordOrNumber
Words$ebnf$1 → ● Words$ebnf$1$subexpression$1
Words → WordOrKeyword ● Words$ebnf$1
UnitNumerator → ● Words UnitNumerator$ebnf$1
Unit$ebnf$1 → ● UnitNumerator
Unit → ● Unit$ebnf$1 Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A word token based on:
WordOrKeyword → ● %word
WordOrNumber → ● WordOrKeyword
Words$ebnf$1$subexpression$1 → Words$ebnf$1$subexpression$1$ebnf$1 ● WordOrNumber
Words$ebnf$1 → ● Words$ebnf$1$subexpression$1
Words → WordOrKeyword ● Words$ebnf$1
UnitNumerator → ● Words UnitNumerator$ebnf$1
Unit$ebnf$1 → ● UnitNumerator
Unit → ● Unit$ebnf$1 Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A boolean token based on:
WordOrKeyword → ● %boolean
WordOrNumber → ● WordOrKeyword
Words$ebnf$1$subexpression$1 → Words$ebnf$1$subexpression$1$ebnf$1 ● WordOrNumber
Words$ebnf$1 → ● Words$ebnf$1$subexpression$1
Words → WordOrKeyword ● Words$ebnf$1
UnitNumerator → ● Words UnitNumerator$ebnf$1
Unit$ebnf$1 → ● UnitNumerator
Unit → ● Unit$ebnf$1 Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A space token based on:
UnitDenominator$ebnf$1$subexpression$1 → ● %space
UnitDenominator$ebnf$1 → ● UnitDenominator$ebnf$1$subexpression$1
UnitDenominator → ● UnitDenominator$ebnf$1 "/" Words
Unit$ebnf$2 → Unit$ebnf$2 ● UnitDenominator
Unit → Unit$ebnf$1 ● Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A "/" based on:
UnitDenominator → UnitDenominator$ebnf$1 ● "/" Words
Unit$ebnf$2 → Unit$ebnf$2 ● UnitDenominator
Unit → Unit$ebnf$1 ● Unit$ebnf$2
number → %number number$ebnf$1 ● Unit
NumericTerminal → ● number
Parentheses → ● NumericTerminal
MultiplicationDivision → ● Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A space token based on:
MultiplicationDivision → MultiplicationDivision ● %space %multiplicationDivision %space Parentheses
AdditionSubstraction → ● MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A space token based on:
AdditionSubstraction → AdditionSubstraction ● %space %additionSubstraction %space MultiplicationDivision
NumericValue → ● AdditionSubstraction
main → ● NumericValue
A space token based on:
Comparison → Comparable ● %space %comparison %space Comparable
main → ● Comparison

@jeannelf
Copy link

Bonjour Clément !

Merci pour le repérage oeil de lynx !
C'est ajouté à notre backlog on s'en occupera dans les prochaines semaines :)

Bonne journée,

Jeanne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants