From 0bc7562c218376b44a3eb87db0e310df0b1d0036 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 13 Jul 2011 01:44:46 +0000 Subject: Trying to hunt down bug in variant code. --- src/unit/variant.unit | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/unit/variant.unit b/src/unit/variant.unit index ca977ee..1654c4f 100644 --- a/src/unit/variant.unit +++ b/src/unit/variant.unit @@ -7,6 +7,9 @@ */ #include "bu/variant.h" +#include "bu/membuf.h" +#include "bu/formatter.h" +#include "bu/string.h" suite Variant { @@ -18,4 +21,14 @@ suite Variant Bu::Variant v2( v ); v2.get(); } + + test formatting + { + Bu::Variant v("hello"); + Bu::MemBuf mb; + Bu::Formatter f( mb ); + f << v; + unitTest( mb.getString() == v.get() ); + + } } -- cgit v1.2.3