Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
6bfde8e4
Commit
6bfde8e4
authored
Mar 07, 2016
by
Alexandre Duret-Lutz
Browse files
eval: Fix typography in error messages
* spot/twaalgos/word.cc: Here. * tests/python/word.ipynb: Adjust.
parent
f9e2143a
Changes
2
Hide whitespace changes
Inline
Side-by-side
spot/twaalgos/word.cc
View file @
6bfde8e4
...
...
@@ -190,7 +190,7 @@ namespace spot
word_parse_error
(
word
,
word
.
size
(),
"A twa_word must contain a cycle"
);
if
(
word
[
ind
]
==
'}'
)
word_parse_error
(
word
,
ind
,
"Expected ';' delimiter
:"
word_parse_error
(
word
,
ind
,
"Expected ';' delimiter:
"
"'}' stands for ending a cycle"
);
// Exract formula, convert it to bdd and add it to the prefix sequence
extract_bdd
(
tw
->
prefix
);
...
...
@@ -211,7 +211,7 @@ namespace spot
break
;
if
(
i
==
std
::
string
::
npos
)
word_parse_error
(
word
,
ind
+
1
,
"Missing end of cycle character
: '}'"
);
"Missing end of cycle character: '}'"
);
}
if
(
ind
!=
word
.
size
()
-
1
)
word_parse_error
(
word
,
ind
+
1
,
"Input should be finished after cycle"
);
...
...
tests/python/word.ipynb
View file @
6bfde8e4
...
...
@@ -349,10 +349,10 @@
"outputs": [
{
"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",
"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"
]
}
],
...
...
@@ -517,4 +517,4 @@
"metadata": {}
}
]
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment