Lumiera  0.pre.03
»edit your freedom«
helloworldtest.cpp
Go to the documentation of this file.
1 /*
2  HelloWorld(Test) - how to use this test framework...
3 
4  Copyright (C)
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
19 #include "lib/test/run.hpp"
20 #include "lib/util.hpp"
21 
22 #include <boost/lexical_cast.hpp>
23 #include <iostream>
24 
25 using boost::lexical_cast;
26 using util::isnil;
27 using std::cout;
28 using std::endl;
29 
30 
31 namespace lumiera{
32 namespace test {
33 
34  /**************************************/
38  class HelloWorld_test : public Test
39  {
40  virtual void
41  run (Arg arg)
42  {
43  uint num{firstVal (arg)};
44  for ( ; 0 < num-- ; )
45  greeting();
46  }
47 
48  void
49  greeting()
50  {
51  cout << "This is how the world ends..." <<endl;
52  }
53  };
54 
55 
56 
57 
58 
67  LAUNCHER (HelloWorld_test, "unit common");
68 
69 
70 
71 }} // namespace lumiera::test
Definition: run.hpp:40
Hellooooooo the world is just a test.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Lumiera public interface.
Definition: advice.cpp:104