diff options
Diffstat (limited to 'libmhello/tests/test')
-rw-r--r-- | libmhello/tests/test/buildfile | 6 | ||||
-rw-r--r-- | libmhello/tests/test/driver.cxx | 15 | ||||
-rw-r--r-- | libmhello/tests/test/test.out | 3 |
3 files changed, 24 insertions, 0 deletions
diff --git a/libmhello/tests/test/buildfile b/libmhello/tests/test/buildfile new file mode 100644 index 0000000..88a391c --- /dev/null +++ b/libmhello/tests/test/buildfile @@ -0,0 +1,6 @@ +import libs = libmhello%lib{mhello} +import libs += libmformat%lib{mformat} +import libs += libstd-modules%liba{std-modules} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.output = test.out diff --git a/libmhello/tests/test/driver.cxx b/libmhello/tests/test/driver.cxx new file mode 100644 index 0000000..debf04a --- /dev/null +++ b/libmhello/tests/test/driver.cxx @@ -0,0 +1,15 @@ +// file: tests/test/driver.cxx -*- C++ -*- + +import std.core; +import format; // volume +import hello; + +int +main () +{ + using namespace hello; + + say ("World"); + say ("World", format::volume::loud); + say_formatted ("Hi, World!"); +} diff --git a/libmhello/tests/test/test.out b/libmhello/tests/test/test.out new file mode 100644 index 0000000..a9ec19f --- /dev/null +++ b/libmhello/tests/test/test.out @@ -0,0 +1,3 @@ +Hello, World! +HELLO, World! +Hi, World! |