From 80f6dabd288b6d4048204416b15a90130a78a6f7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 14 Oct 2010 04:34:12 +0000 Subject: A quick unit test for the copy constructor in variant. --- src/unit/variant.unit | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/unit/variant.unit (limited to 'src/unit') 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 @@ +// vim: syntax=cpp +/* + * Copyright (C) 2007-2010 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#include "bu/variant.h" + +suite Variant +{ + test construction + { + Bu::Variant v( 55 ); + v.get(); + + Bu::Variant v2( v ); + v2.get(); + } +} -- cgit v1.2.3