[hawkmoth] [PATCH 2/2] test: cover additional macro cases

  • From: Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx>
  • To: Jani Nikula <jani@xxxxxxxxxx>, hawkmoth mailing list <hawkmoth@xxxxxxxxxxxxx>
  • Date: Sat, 12 Oct 2019 17:48:40 +0200

These cases are important to fully test the parameters extraction in
function like macros.
---
 test/simple-macro.c   | 10 ++++++++++
 test/simple-macro.rst | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/test/simple-macro.c b/test/simple-macro.c
index 975bf96..378f182 100644
--- a/test/simple-macro.c
+++ b/test/simple-macro.c
@@ -1,4 +1,14 @@
+/**
+ * The simplest macro.
+ */
+#define I_EXIST
+
 /**
  * A simple macro.
  */
 #define FOO 1
+
+/**
+ * Another simple macro.
+ */
+#define BAR (bar)
diff --git a/test/simple-macro.rst b/test/simple-macro.rst
index 7532231..34b400c 100644
--- a/test/simple-macro.rst
+++ b/test/simple-macro.rst
@@ -1,5 +1,15 @@
 
+.. c:macro:: I_EXIST
+
+   The simplest macro.
+
+
 .. c:macro:: FOO
 
    A simple macro.
 
+
+.. c:macro:: BAR
+
+   Another simple macro.
+
-- 
2.23.0


Other related posts:

  • » [hawkmoth] [PATCH 2/2] test: cover additional macro cases - Bruno Santos