Lumiera  0.pre.03
»edit your freedom«
app-config-test.cpp
Go to the documentation of this file.
1 /*
2  Appconfig(Test) - accessing the always-available AppState singleton
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 
20 #include "lib/test/run.hpp"
21 #include "include/config-facade.h"
22 #include "lib/symbol.hpp"
23 #include "lib/util.hpp"
24 
25 using lib::Literal;
26 using util::isnil;
27 
28 
29 
30 namespace lumiera {
31 namespace test {
32 
33 
34  class Appconfig_test : public Test
35  {
36  virtual void
37  run (Arg)
38  {
40  }
41 
42 
45  {
46  Literal key("Lumiera.version");
47  string ver = Config::get(key);
48  CHECK (!isnil(ver));
49  }
50  };
51 
52 
53  LAUNCHER (Appconfig_test, "function common");
54 
55 
56 }} // namespace util::test
57 
Definition: run.hpp:40
inline string literal This is a marker type to indicate that
Definition: symbol.hpp:76
static string get(lib::Literal key)
The lumiera::Config wrapper class addresses two issues.
Marker types to indicate a literal string and a Symbol.
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