eval: Fix typography in error messages

* spot/twaalgos/word.cc: Here.
* tests/python/word.ipynb: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2016-03-07 22:34:06 +01:00
parent f9e2143a53
commit 6bfde8e454
2 changed files with 5 additions and 5 deletions

View file

@ -190,7 +190,7 @@ namespace spot
word_parse_error(word, word.size(), word_parse_error(word, word.size(),
"A twa_word must contain a cycle"); "A twa_word must contain a cycle");
if (word[ind] == '}') if (word[ind] == '}')
word_parse_error(word, ind, "Expected ';' delimiter :" word_parse_error(word, ind, "Expected ';' delimiter: "
"'}' stands for ending a cycle"); "'}' stands for ending a cycle");
// Exract formula, convert it to bdd and add it to the prefix sequence // Exract formula, convert it to bdd and add it to the prefix sequence
extract_bdd(tw->prefix); extract_bdd(tw->prefix);
@ -211,7 +211,7 @@ namespace spot
break; break;
if (i == std::string::npos) if (i == std::string::npos)
word_parse_error(word, ind + 1, word_parse_error(word, ind + 1,
"Missing end of cycle character : '}'"); "Missing end of cycle character: '}'");
} }
if (ind != word.size() - 1) if (ind != word.size() - 1)
word_parse_error(word, ind + 1, "Input should be finished after cycle"); word_parse_error(word, ind + 1, "Input should be finished after cycle");

View file

@ -349,10 +349,10 @@
"outputs": [ "outputs": [
{ {
"ename": "SyntaxError", "ename": "SyntaxError",
"evalue": "\n>>> a; b; c}\n ^\nExpected ';' delimiter :'}' stands for ending a cycle\n (<string>)", "evalue": "\n>>> a; b; c}\n ^\nExpected ';' delimiter: '}' stands for ending a cycle\n (<string>)",
"output_type": "pyerr", "output_type": "pyerr",
"traceback": [ "traceback": [
"\u001b[0;36m File \u001b[0;32m\"<string>\"\u001b[0;36m, line \u001b[0;32munknown\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m \n>>> a; b; c}\n ^\nExpected ';' delimiter :'}' stands for ending a cycle\n\n" "\u001b[0;36m File \u001b[0;32m\"<string>\"\u001b[0;36m, line \u001b[0;32munknown\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m \n>>> a; b; c}\n ^\nExpected ';' delimiter: '}' stands for ending a cycle\n\n"
] ]
} }
], ],