view Exception/TestIOException.cpp @ 110:bae09ef524cb

Fixes escaping problem in SQL. Introduces striping functionality for prefixes.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Tue, 18 Feb 2014 19:42:05 +0100
parents c9447697609f
children
line wrap: on
line source

#include "Exception/IOException.hpp"
#include "TestFramework.hpp"

BOOST_AUTO_TEST_CASE( Create )
{
  try {
    throw IOException("Hello");
  }
  catch (IOException & e) {
    BOOST_REQUIRE_EQUAL(e.toString(), "Hello");
    BOOST_REQUIRE_THROW(e.raise(), IOException);
  }
}