diff options
Diffstat (limited to 'tests/specifier')
-rw-r--r-- | tests/specifier/buildfile | 10 | ||||
-rw-r--r-- | tests/specifier/driver.cxx | 29 | ||||
-rw-r--r-- | tests/specifier/test.cli | 12 |
3 files changed, 0 insertions, 51 deletions
diff --git a/tests/specifier/buildfile b/tests/specifier/buildfile deleted file mode 100644 index 3a0e42e..0000000 --- a/tests/specifier/buildfile +++ /dev/null @@ -1,10 +0,0 @@ -# file : tests/specifier/buildfile -# license : MIT; see accompanying LICENSE file - -exe{driver}: {hxx cxx}{* -test} cli.cxx{test} -exe{driver}: test.arguments = -a -c foo - -cxx.poptions =+ "-I$out_base" - -cli.cxx{test}: cli{test} -cli.options = --generate-specifier --generate-modifier diff --git a/tests/specifier/driver.cxx b/tests/specifier/driver.cxx deleted file mode 100644 index 0194bbe..0000000 --- a/tests/specifier/driver.cxx +++ /dev/null @@ -1,29 +0,0 @@ -// file : tests/specifier/driver.cxx -// author : Boris Kolpackov <boris@codesynthesis.com> -// license : MIT; see accompanying LICENSE file - -// Test specifier functions. -// - -#include <string> -#include <cassert> - -#include "test.hxx" - -using namespace std; - -int -main (int argc, char* argv[]) -{ - options o (argc, argv); - - assert (o.a ()); - assert (o.b () == 1 && !o.b_specified ()); - assert (o.c () == "foo" && o.c_specified ()); - - o.b_specified (true); - o.c_specified (false); - - assert (o.b_specified ()); - assert (!o.c_specified ()); -} diff --git a/tests/specifier/test.cli b/tests/specifier/test.cli deleted file mode 100644 index f8fdf96..0000000 --- a/tests/specifier/test.cli +++ /dev/null @@ -1,12 +0,0 @@ -// file : tests/specifier/test.cli -// author : Boris Kolpackov <boris@codesynthesis.com> -// license : MIT; see accompanying LICENSE file - -include <string>; - -class options -{ - bool -a; - int -b = 1; - std::string -c; -}; |