summaryrefslogtreecommitdiff
path: root/libformat/tests/basics/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-04 15:35:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-04 15:35:08 +0200
commit8728018f93a73b08a68ab1cea502a5f6b4a2a79e (patch)
tree9e70e77ce7d1c31cce8f1b29103e2dfdb7583603 /libformat/tests/basics/driver.cxx
parentf26b449f825c0641328597b48cacf0d827a63147 (diff)
Regenerate libformat using bdep-new
Diffstat (limited to 'libformat/tests/basics/driver.cxx')
-rw-r--r--libformat/tests/basics/driver.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/libformat/tests/basics/driver.cxx b/libformat/tests/basics/driver.cxx
new file mode 100644
index 0000000..03faea7
--- /dev/null
+++ b/libformat/tests/basics/driver.cxx
@@ -0,0 +1,14 @@
+#include <cassert>
+
+#include <libformat/version.hxx>
+#include <libformat/format.hxx>
+
+using namespace std;
+using namespace format;
+
+int main ()
+{
+ assert (format_hello ("Hello", "World", volume::quiet) == "hello, World!");
+ assert (format_hello ("Hello", "World", volume::normal) == "Hello, World!");
+ assert (format_hello ("Hello", "World", volume::loud) == "HELLO, World!");
+}