diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-12-21 08:22:36 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-12-21 08:22:36 +0100 |
commit | 311424ce8850091136082561ecf1be358081b65a (patch) | |
tree | 435daca8c9234eb51d491c472a482272d7b8ba85 /testsuite/pyunit | |
parent | e13fcabd288b212c208cb594d6427fe0549a7d8e (diff) | |
download | ghdl-311424ce8850091136082561ecf1be358081b65a.tar.gz ghdl-311424ce8850091136082561ecf1be358081b65a.tar.bz2 ghdl-311424ce8850091136082561ecf1be358081b65a.zip |
testsuite/pyunit/libghdl: add a test for package comments
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r-- | testsuite/pyunit/libghdl/Comments.py | 3 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/examples/comments/pkg_inside_2.vhdl | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/pyunit/libghdl/Comments.py b/testsuite/pyunit/libghdl/Comments.py index 172673b2d..edb283f79 100644 --- a/testsuite/pyunit/libghdl/Comments.py +++ b/testsuite/pyunit/libghdl/Comments.py @@ -175,6 +175,9 @@ class CommentAssociation(Base): def test_pkg_inside(self) -> None: self.checkFile(self._root / "comments/pkg_inside.vhdl") + def test_pkg_inside_2(self) -> None: + self.checkFile(self._root / "comments/pkg_inside_2.vhdl") + @expectedFailure def test_ctxt_inside_fail(self) -> None: self.checkFile(self._root / "comments/ctxt_inside_fail.vhdl") diff --git a/testsuite/pyunit/libghdl/examples/comments/pkg_inside_2.vhdl b/testsuite/pyunit/libghdl/examples/comments/pkg_inside_2.vhdl new file mode 100644 index 000000000..ac0c0240a --- /dev/null +++ b/testsuite/pyunit/libghdl/examples/comments/pkg_inside_2.vhdl @@ -0,0 +1,7 @@ +-- As packages define public elements like constants, types and sub-programs, we are intrested in such documentation too.:p2: +package p2 is + -- comments in design units (python doc-string style):p2: + -- might be multi line :p2: + + constant unrelated: boolean := True; +end package; |