make annotations big enough to show up
[mussa.git] / alg / test / test_glsequence.cpp
index 9c7853043f38ff33d70614a776ac47ea952e8eff..bb0cb49194eb2160bb9409d88cfdb31490bcbd70 100644 (file)
@@ -1,4 +1,5 @@
 #include <boost/test/auto_unit_test.hpp>
+#include <boost/test/floating_point_comparison.hpp>
 
 #include <string>
 
@@ -53,6 +54,9 @@ BOOST_AUTO_TEST_CASE( glsequence_renderable )
   BOOST_CHECK_EQUAL(s.is_sequence_renderable( 0, 1000, 500), false );
   // way fewer basepairs than viewport pixel width
   BOOST_CHECK_EQUAL(s.is_sequence_renderable( 0, 10, 500), true);
+
+  BOOST_CHECK_CLOSE((double)s.get_pixel_width(0, 100, 100), 1.0, 1e-6);
+  BOOST_CHECK_CLOSE((double)s.get_pixel_width(0, 1000, 100), 10.0, 1e-6);
 }
 
 BOOST_AUTO_TEST_CASE( glsequence_sequence )