aboutsummaryrefslogtreecommitdiff
path: root/src/tests/confpair.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/confpair.cpp')
-rw-r--r--src/tests/confpair.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tests/confpair.cpp b/src/tests/confpair.cpp
index 8e03730..fb1b0d3 100644
--- a/src/tests/confpair.cpp
+++ b/src/tests/confpair.cpp
@@ -5,10 +5,15 @@ using namespace std;
5 5
6int main() 6int main()
7{ 7{
8 ConfPair<bool> p1("DebugMode"); 8 ConfPair<float> p1("DebugMode");
9 p1.value() = true; 9 p1.value() = 12;
10 cout << p1.value() << "\n"; 10 cout << p1.value() << "\n";
11 p1.value() = false; 11 p1.value() = 55;
12 cout << p1.value() << "\n"; 12 cout << p1.value() << "\n";
13
14 ConfPairBase &p = p1;
15
16 p = "33.12";
17 cout << p.getAsString();
13} 18}
14 19