summaryrefslogtreecommitdiff
path: root/tests/cpp/include/bool2str.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/include/bool2str.h')
-rw-r--r--tests/cpp/include/bool2str.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cpp/include/bool2str.h b/tests/cpp/include/bool2str.h
new file mode 100644
index 0000000..26aac80
--- /dev/null
+++ b/tests/cpp/include/bool2str.h
@@ -0,0 +1,12 @@
+/**
+ *
+ * bool -> string
+ *
+ */
+
+
+
+std::string bool2str(bool b)
+{
+ return b ? "Yes" : "No";
+}