catch possible segfault with get_sequence()
[mussa.git] / alg / test / test_sequence.cpp
index 3a2b9db428b8419b809b46c6315a3cd2c10e89cf..c588555e9be18e9f9eecec5e858d70245820c9cd 100644 (file)
@@ -17,6 +17,13 @@ namespace fs=boost::filesystem;
 
 using namespace std;
 
+BOOST_AUTO_TEST_CASE( sequence_get_sequence )
+{
+       Sequence s;
+       // make sure that retrieving the sequence doesn't throw an error
+       BOOST_CHECK_EQUAL(s.get_sequence(), std::string() );
+}
+
 //! when we try to load a missing file, do we get an error?
 BOOST_AUTO_TEST_CASE( sequence_load_exception )
 {