aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-10-14 04:34:12 +0000
committerMike Buland <eichlan@xagasoft.com>2010-10-14 04:34:12 +0000
commit80f6dabd288b6d4048204416b15a90130a78a6f7 (patch)
tree6adbb042f4538a2eedc8150dc69d82bbb695c540 /src/unit
parent8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da (diff)
downloadlibbu++-80f6dabd288b6d4048204416b15a90130a78a6f7.tar.gz
libbu++-80f6dabd288b6d4048204416b15a90130a78a6f7.tar.bz2
libbu++-80f6dabd288b6d4048204416b15a90130a78a6f7.tar.xz
libbu++-80f6dabd288b6d4048204416b15a90130a78a6f7.zip
A quick unit test for the copy constructor in variant.
Diffstat (limited to '')
-rw-r--r--src/unit/variant.unit21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/unit/variant.unit b/src/unit/variant.unit
new file mode 100644
index 0000000..ecfa5c3
--- /dev/null
+++ b/src/unit/variant.unit
@@ -0,0 +1,21 @@
1// vim: syntax=cpp
2/*
3 * Copyright (C) 2007-2010 Xagasoft, All rights reserved.
4 *
5 * This file is part of the libbu++ library and is released under the
6 * terms of the license contained in the file LICENSE.
7 */
8
9#include "bu/variant.h"
10
11suite Variant
12{
13 test construction
14 {
15 Bu::Variant v( 55 );
16 v.get<int>();
17
18 Bu::Variant v2( v );
19 v2.get<int>();
20 }
21}