diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-28 06:56:37 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-28 06:56:37 +0200 |
commit | 7617fcb8276c069a461f698d2eb3cb8038a8e25e (patch) | |
tree | fa74fe558dacd1bf577ebd392a8892abbb1c0d36 /rtemsspec | |
parent | validation: Add ability to skip action transitions (diff) | |
download | rtems-central-7617fcb8276c069a461f698d2eb3cb8038a8e25e.tar.bz2 |
specdoc: Fix output format of regular expressions
Diffstat (limited to 'rtemsspec')
-rw-r--r-- | rtemsspec/specdoc.py | 2 | ||||
-rw-r--r-- | rtemsspec/tests/test_specdoc.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rtemsspec/specdoc.py b/rtemsspec/specdoc.py index 40e4a47b..79555038 100644 --- a/rtemsspec/specdoc.py +++ b/rtemsspec/specdoc.py @@ -205,7 +205,7 @@ def _document_op_uid(ctx: _AssertContext, negate: bool, def _document_op_re(ctx: _AssertContext, negate: bool, assert_info: Any) -> None: ctx.paste(f"shall {_negate(negate)}match with " - f"the regular expression \"``{assert_info}\"``") + f"the regular expression \"``{assert_info}``\"") def _document_op_in(ctx: _AssertContext, negate: bool, diff --git a/rtemsspec/tests/test_specdoc.py b/rtemsspec/tests/test_specdoc.py index 0ac432e9..0e611634 100644 --- a/rtemsspec/tests/test_specdoc.py +++ b/rtemsspec/tests/test_specdoc.py @@ -129,7 +129,7 @@ A value of this type shall be of one of the following variants: * and, shall be not equal to "``k``", - * and, shall match with the regular expression "``l"``, + * and, shall match with the regular expression "``l``", * and, shall be true, @@ -171,7 +171,7 @@ A value of this type shall be of one of the following variants: * or, shall be equal to "``k``", - * or, shall not match with the regular expression "``l"``, + * or, shall not match with the regular expression "``l``", * or, shall be false, |