From 720c5a33b6a49cf328fdd7611f49153cf8f60247 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 8 Apr 2020 14:51:57 +0300 Subject: Separate tests and examples into individual packages Also make cli module to be explicitly enabled via the config.cli configuration variable. --- tests/inheritance/driver.cxx | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tests/inheritance/driver.cxx (limited to 'tests/inheritance/driver.cxx') diff --git a/tests/inheritance/driver.cxx b/tests/inheritance/driver.cxx deleted file mode 100644 index 5ecb019..0000000 --- a/tests/inheritance/driver.cxx +++ /dev/null @@ -1,35 +0,0 @@ -// file : tests/inheritance/driver.cxx -// author : Boris Kolpackov -// license : MIT; see accompanying LICENSE file - -// Test option class inheritance. -// - -#include -#include -#include - -#include "test.hxx" - -using namespace std; - -int -main (int argc, char* argv[]) -{ - const cli::options& d (options::description ()); - - assert (d.size () == 4); - assert (d[0].name () == "--very-long-flag"); - assert (d[1].name () == "-i"); - assert (d[2].name () == "-s"); - assert (d[3].name () == "--string"); - - options o (argc, argv); - - assert (o.very_long_flag ()); - assert (o.s () == "short"); - assert (o.i () == 123); - assert (o.string () == "long"); - - options::print_usage (cout); -} -- cgit v1.1